Skip to content
Discussion options

You must be logged in to vote

GitHub doesn’t currently support that level of fine-grained separation between “code” and “pull requests” permissions in the way you’re hoping.

“Pull requests (write)” requires “Contents (write)” under the hood.
So if an app can create/update PRs, it can technically push code.

Best workaround:
Enable branch protection rules (no direct pushes to main, require PR reviews)
Limit the app to only selected repos (like you did)

That way, the app can write code, but can’t bypass your PR review process.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lancedolan
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apps API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
4 participants