Conversation
I am noticing bot accounts hitting GitHub repos and approving (not merging, but approving) PRs. The GitHub docs on how to stop non-collaborators from doing this are difficult to understand. So far I have resorted to old-fashioned branch protection. Has anybody with a divining rod figured out the #github permissions to specifically address this issue?
1
4
2

@andy You can restrict reviews to those with existing repo permissions:

'[ ] Limit to users explicitly granted read or higher access

'When enabled, only users explicitly granted access to this repository will be able to submit pull request reviews that "approve" or "request changes". All users able to submit comment pull request reviews will continue to be able to do so."

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/managing-pull-request-reviews-in-your-repository

1
0
0
@hugovk Awesome! Yes, thanks. I cannot explain why I did not see that before.
0
0
2