Resource not accessible by integration #57878
-
Select Topic AreaQuestion BodyHi Team, I am working on a Github action workflows to label the PRs. I am using actions/github-script@v4 and repo-token: ${{ secrets.GITHUB_TOKEN }} in the script. The script is working fine in my forked repo but it is not working in the production branch and getting error - "Resource not accessible by integration" I have tried so far to grant the permissions:
Log:
Please let me know if any information is required. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
The problem is that your workflow is running for a You might want to use the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response!🙂 I have added the |
Beta Was this translation helpful? Give feedback.
-
As I mentioned above, |
Beta Was this translation helpful? Give feedback.
-
Hi @airtower-luna, I have a quick question regarding the Github token. Is it safe to not use This is to avoid the below warning,
|
Beta Was this translation helpful? Give feedback.
As I mentioned above,
pull_request_target
takes the workflow from the default branch. The workflow won't run until it's on the default branch.