Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Bug
What GitHub Actions topic or product is this about?
Misc
Discussion Details
I've been trying to setup a repository where we allow a bot to open pull requests, and this opens bypasses around the branch protection rules that I can't find a way to close.
If I have a repo that requires 1 review before merge, then I can push a branch that creates an action that gets the bot to approve my PR, and I can merge. I tried fixing this by requiring multiple reviews, 1 more than the number of bots, and then had the bots automatically approve whenever somebody else does. The idea being a user could still manipulate the bot, but they would still need to get at least one more review from another person as the bot can't approve its own PR.
However then I realised I could just get the bot to push to an open PR, and my approval would still be enough even with the option
enabled. This is because approvals from the last person to push still count, they just can't be the only approval. This feels like an oversight.
Beta Was this translation helpful? Give feedback.
All reactions