upvote
You say it’s got nothing to do with RBAC and then give an example of the limitations of GitHub’s RBAC.

The issue I was referring to was how anyone with admin access to the repo can disable branch protection. And if you can disable it, you can bypass it. But there are instances where you might want people to have admin access but not have the power to disable branch protection. But there isn’t enough granularity to do that

reply
You are right that changing rulesets will trigger a 2FA check. But then again, the attacker might have the 2FA too if it's a OTP.

You are also right that it's possible to have a secure setup, however there are multiple ways to get it wrong (see my other reply in the parent thread).

reply