Closed jdhoffa closed 4 months ago
and figure out how to make it actually work, e.g. prevent any accidental by-passing of those protections
for clarification, branch protection on main
is in place but I was still able to accidentally push directly to main from my local machine
Found this just now (emphasis added):
By default, the restrictions of a branch protection rule don't apply to people with admin permissions to the repository or custom roles with the "bypass branch protections" permission.
I'll be setting up a demo repo to explore rulesets later today.
this repo currently has:
Confirming that this works (even for admins)
This shouldn't be possible for anyone (even admins).
Originally posted by @cjyetman in https://github.com/RMI-PACTA/pacta.data.preparation/issues/309#issuecomment-1997177376