actions / github-script

Write workflows scripting the GitHub API in JavaScript
MIT License
4.24k stars 424 forks source link

@types/github-script install fails in github action in dependabot pr's #487

Open Quintisimo opened 2 months ago

Quintisimo commented 2 months ago

Describe the bug When npm dependencies are being installed in a github action in a dependabot pr, it fails on @types/github-script with a permission denied error. I am using pnpm but I would assume this error occurs in all package managers.

To Reproduce Steps to reproduce the behavior:

  1. Install @types/github-script
  2. Add a github action to run pnpm install
  3. Wait for dependabot to create a pr and run pnpm install in github action
  4. See error

Expected behavior The install is successful

Screenshots CleanShot 2024-09-17 at 10 58 32@2x

Desktop (please complete the following information):