Branch Protection πΒΆ
See also repository.md for repository-wide security settings.
Enforcement πΒΆ
Ruleset
Mainis Enabled (Enforced)
π Meaning for contributors:
Every rule marked β in this document is actively enforced on the default branch (
main).Rules marked β are not part of the ruleset and block nothing.
Contributors MUST comply; violations will block pushes/merges.
Bypass πͺΒΆ
Organization admins and repository admins can always bypass rules
π Meaning for contributors:
Normal contributors MUST follow all rules
Admins MAY merge without approvals or checks
Branch Target π―ΒΆ
Applies to:
main(default branch)
π Meaning for contributors:
All rules apply when targeting
main.Feature branches are NOT restricted until a PR targets
main.
Restrictions π«ΒΆ
Restrict Updates β ΒΆ
Direct pushes are blocked
π Contributor impact:
You MUST NOT push directly to
mainYou MUST use a Pull Request (PR)
Restrict Deletions β ΒΆ
Protected branch cannot be deleted
π Contributor impact:
You MUST NOT delete the main branch
Restrict Creations βΒΆ
Branch creation is allowed
π Contributor impact:
You MAY create branches freely
Pull Request Requirements πΒΆ
Require Pull Request β ΒΆ
π Contributor impact:
You MUST open a PR to merge into
mainDirect commits to
mainare rejected
Required Approvals: 2 β ΒΆ
π Contributor impact:
You MUST get 2 approvals before merging
Self-approval does not count
Dismiss Stale Approvals β ΒΆ
π Contributor impact:
If you push new commits:
Previous approvals are INVALIDATED
You MUST get approvals again
Require Code Owner Reviews β ΒΆ
π Contributor impact:
If you modify owned files:
A CODEOWNER MUST approve
PR cannot be merged without them
Require Approval of Most Recent Push β ΒΆ
π Contributor impact:
After your last commit:
Someone ELSE MUST approve again
You CANNOT approve your own changes
Require Conversation Resolution β ΒΆ
π Contributor impact:
All review comments MUST be resolved
Open discussions block merging
Require Review from Specific Teams βΒΆ
π Contributor impact:
No fixed team is always required
Only CODEOWNERS matter
Merge Strategy πΒΆ
Allowed Merge Method: Merge β ΒΆ
π Contributor impact:
PRs are merged using merge commits
History MAY become non-linear
Require Linear History βΒΆ
π Contributor impact:
Merge commits ARE allowed
You MAY see branching history
Require Merge Queue βΒΆ
π Contributor impact:
PRs can be merged immediately after approval
No automatic queueing
Status Checks (CI/CD) βΒΆ
Require Status Checks to Pass βΒΆ
π Contributor impact:
The ruleset names no required check, so a failing or missing CI run does not block the merge.
CI in your fork still MUST be green before you open the PR, see pull-request.md.
Require Branch to Be Up-To-Date βΒΆ
π Contributor impact:
The ruleset does not block merging a branch that is behind
main.Your branch still MUST be up to date with
main, see pull-request.md.
Security πΒΆ
Require Signed Commits βΒΆ
π Contributor impact:
The ruleset
Maindoes not reject unsigned commits.The ruleset
Signed, which requires signed commits onmain, is disabled.
Block Force Pushes β ΒΆ
π Contributor impact:
You MUST NOT rewrite history on protected branches
git push --forceis blocked
Code Scanning π¬ΒΆ
Require Code Scanning Results β ΒΆ
Configured tools:
CodeQL (High severity)
Hadolint (High severity)
No workflow uploads Hadolint results to code scanning. Hadolint checks Dockerfile as lint-dockerfile inside make lint and writes no SARIF.
π Contributor impact:
PR MUST NOT introduce high-severity issues
Otherwise merge is blocked
Code Quality πΒΆ
Require Code Quality Results β ΒΆ
Threshold: Warnings and higher
π Contributor impact:
You MUST fix code quality issues before merge
Copilot Review π€ΒΆ
Automatically Request Copilot Review β ΒΆ
π Contributor impact:
Copilot may automatically review your PR
It may comment on issues
It does not replace human approvals