GitLab check

Force-push is allowed on the default branch

GL-BR-002HighBranch protection

Trigger condition

At least one protected-branch rule matching the default branch allows force-push (the most permissive matching rule wins).

Evidence

States the default branch and that the resolved effective force-push permission is 'allowed'.

Impact

Force-push on the default branch can rewrite or destroy commit history, obscure prior changes, and break collaborators relying on that history -- undermining any audit trail.

Recommendation

Disable 'Allowed to force push' on every protected-branch rule matching the default branch.

← Back to the check catalogue