-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Github - 403 for issue permission #1710
Comments
Odd bit is that the main bits of code: digger/libs/ci/github/github.go Lines 304 to 308 in 9b155e3
|
I added |
Hi @samroweemployinc try |
I suspect its related to this change if confirmed to fix I will be updating the docs |
Sorry the typo was in my comment, not in my test. I'd written |
Ensure it looks like this:
also ensure it exists in the main branch |
I'll try to test soon. |
Still seeing
|
Please note we did modifications to the job and global level, and as job and global were the same stripped it down to just global for the permissions configuration. I can also confirm for the github app, that we have read/write access to issues, and pull requests on the repo level. |
Thanks for continued investigation on this. I had someone report exact same error and it was fixed with issues: write. Not sure what may be going on in your case but if at all possible could we reproduce it in a minimal repo somehow? That would be immensely helpful! |
Can confirm moving the permissions from the job level to the global level has resolved this issue for me. |
Great! Glad it helped |
Today I hit the same problem. Starting from digger v0.6.41, issues permissions are appear to be required. Whether |
Fixes diggerhq#1710 Starting from digger v0.6.41, at least `issues: read` permission is required to check if PR number is an issue or not. It should be clearly stated in the document so that other folks are not confused. I'm not sure when `issues:write` is needed, please add another note where appropriate.
Upgrading from 0.6.40 to 0.6.42 resulted in the following error:
error getting pull request (as issue): GET https://api.github.com/repos/ORG/REPO/issues/1316: 403 Resource not accessible by integration []
On 0.6.40 exact same workflow executes without any errors to the api nor were permissions needed to be extended. In testing with added permissions for issue and pullrequest no change in error. I have not adjusted the workflows permissions yet to test that change.
digger.yml:
Github action:
The text was updated successfully, but these errors were encountered: