GitLab check

Missing required merge request approvals or author self-approval allowed

GL-MR-003HighMerge safeguards

Trigger condition

Either confirmed condition for the default branch: no regular or any-approver project approval rule requires at least one approval, or the project's (or an inherited group's) allow_author_approval setting is confirmed true.

Evidence

States which of the two confirmed reasons applies: a missing required-approval rule, author self-approval being allowed, or both.

Impact

Without a required-approval rule, or with author self-approval allowed, a merge request may be merged into the default branch with fewer independent reviewers than intended, or with its own author providing the only approval. This check evaluates only the project's own regular and any-approver approval rules and its allow_author_approval setting for the default branch -- not any individual merge request's actual approval state, CODEOWNERS-derived approval requirements, or security approval policies.

Recommendation

Require at least one independent approval for the default branch via a regular or any-approver project approval rule, and disable author self-approval, as applicable.

Important limitations

Both of GitLab's approval-rules and approval-settings endpoints require GitLab Premium or Ultimate (unavailable on Free). A missing, unreadable, or ambiguous rule or setting is treated as unknown and never flagged as either safe or unsafe. This check evaluates only project-level rules for the default branch -- it does not inspect individual merge requests, CODEOWNERS approval requirements, or security approval policies.

← Back to the check catalogue