ExitVersion Control: protected merge workflows1 / 9
Explanation

Make merge permission depend on evidence

How protected branches enforce validation of proposed revisions and independent approval before application or infrastructure changes are merged. · advanced

A protected branch makes the repository enforce conditions before accepting a proposed change. Require a pull request, successful required checks, and approval from an eligible reviewer other than the author. These conditions are an AND gate: passing tests cannot replace review, and approval cannot replace failed or missing checks.

Automated validation checks properties that tools can evaluate, such as compilation, tests, and infrastructure policy rules. Independent approval evaluates intent, design, and operational consequences. An approval is evidence of a review, not proof that a change is safe. Configure eligible reviewers and, where supported, required owners for sensitive paths.

The gate is only effective if writers cannot go around it. Restrict direct pushes, force pushes, branch deletion, and bypass permissions on the target branch. Protect changes to approval rules and validation configuration too. Otherwise, someone able to weaken the rules can approve a change indirectly by removing its requirements. Exact controls and administrator exemptions depend on the repository provider.

EvidenceMain questionDoes not replace
Automated validationDo specified checks pass?Independent judgment
Independent approvalIs this change acceptable?Required automated checks