GitLab check

Developers can push directly to the default branch

GL-BR-003MediumBranch protection

Trigger condition

The Developer role-based direct-push permission is granted on at least one protected-branch rule matching the default branch (the most permissive matching rule wins).

Evidence

States the default branch and that a Developer role push-access grant was found on a matching rule.

Impact

Allowing direct pushes at the Developer role bypasses merge request review for a broad set of contributors, reducing change visibility.

Recommendation

Restrict default-branch push access to Maintainer or 'No one', and require changes via merge request.

Important limitations

This reports a permission grant, not proof that a developer has actually pushed directly to the default branch. User-specific, group-specific, deploy-key-specific, and custom-role grants are not evaluated.

← Back to the check catalogue