What permission does GitHub app need to execute gh pr view and gh pr merge --auto? #8083
-
I created a GitHub app, got it installed in the repo in our org, got these permissions granted to it -
Most of the commands I need the app to run are running fine, except these two - gh pr view
But this is working fine -
So, looks like the statusCheckRollup thing is tripping the unfiltered gh pr view. The app already has RW permission to commit statuses and PRs. What other permission do I need to get for the app for this? gh pr mergeThese commands are failing -
with this error - The app already has write permission to the PRs. What other permission do I need to get for the app for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@bikram-agarwal : Since these GitHub CLI commands are pulling data out of GitHub's GraphQL API objects, the object field paths in the error message are one way I would troubleshoot permission scoping:
I hope this helps. However if this doesn't, I also recommend reaching out to GitHub Support via https://support.github.com/. |
Beta Was this translation helpful? Give feedback.
Thanks for the guidance @andyfeller. With this info, I submitted a ticket with my org's admins, and they granted read-write access to "code". So, the app's permission now looks like this -
The app is now able to do
gh pr view
andgh pr merge
.Thanks again.