GitLab check

Default branch is not protected

GL-BR-001HighBranch protection

Trigger condition

No exact, wildcard, or inherited protected-branch rule matches the project's default branch.

Evidence

States the project path and default branch, and that no matching protected-branch rule was found.

Impact

An unprotected default branch permits force-push, deletion, and unreviewed direct pushes by anyone with push access. The default branch is typically the deployment/release source of truth.

Recommendation

Create a protected-branch rule whose name matches the default branch, with push and merge access restricted appropriately.

← Back to the check catalogue