You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To improve security of our repo, we recently set the default permissions for the token for the repository to read only to the contents scope. I am now trying to open backup permissions for this action so that it can write the label to the PR, but I am not having success. First I tried:
name: PR Labeler
on:
pull_request_target:
types: [opened]
permissions:
pull_request: write
Then I tried adding issues write since I saw the octokit function being called was in the issues section. Finally I changed it to permissions: write-all. When I try to open a pull request I am getting:
Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration
Do you know what specific permissions this action needs, and could we please document it in the README?
The text was updated successfully, but these errors were encountered:
danyeaw
added a commit
to danyeaw/pr-labeler-action
that referenced
this issue
May 3, 2022
We have the same issue on https://github.com/avo-hq/avo with forks. All PRs coming from forks fail this action with HttpError: Resource not accessible by integration.
I'd appreciate any guidance on how to make that work. Thanks!
To improve security of our repo, we recently set the default permissions for the token for the repository to read only to the contents scope. I am now trying to open backup permissions for this action so that it can write the label to the PR, but I am not having success. First I tried:
Then I tried adding issues write since I saw the octokit function being called was in the issues section. Finally I changed it to
permissions: write-all
. When I try to open a pull request I am getting:Do you know what specific permissions this action needs, and could we please document it in the README?
The text was updated successfully, but these errors were encountered: