How can I restrict a repo admin from creating or pushing to protected branches? #138828
Unanswered
andy-maier
asked this question in
Repositories
Replies: 1 comment 5 replies
-
I think you need to:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
We are using GitHub Enterprise (with GitHub Enterprise Server 3.11.14), and I would like to protect branches (using wildcards, e.g. "dev-*") such that nobody can create a matching branch and nobody can push to an existing matching branch.
The protection I have in place works for non-admins, but not for admins. I want the restriction to apply also to admins.
Here are the relevant branch protection settings I have in place:
It seems that the "Organization admins, repo admins, ..." box there means that these people are always permitted to bypass the restrictions. Is that true?
How can I restrict these people as well?
Beta Was this translation helpful? Give feedback.
All reactions