Branch Protection: Enforce Admins
The following rule type is available for enforcing branch protection rules for repository administrators.
stacklok/branch_protection_enforce_admins
- Whether the protection rules apply to repository administrators
Ensure that the "Enforce required status checks for repository administrators" setting is enabled for the branch protection rule.
For more information, see https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule
Entity
repository
Type
stacklok/branch_protection_enforce_admins
Rule parameters
The stacklok/branch_protection_enforce_admins
rule supports the following parameters:
branch (string)
- The name of the branch to check. If left empty, the default branch will be used.
Rule definition options
The stacklok/branch_protection_enforce_admins
rule supports the following options:
enforce_admins (boolean)
- Specifies whether the protection rule applies to repository administrators.