Merge requests may only merge if the pipeline succeeds and a security approver signs off for critical findings.
IntermediateScenarioGitLab CI
Answer
Situation read → MR governance.
What I'd do →
- Enable "Pipelines must succeed" in merge settings.
- Add approval rules, including a security-scanner-triggered rule for new critical vulnerabilities.
- Use CODEOWNERS sections for sensitive paths with required approvals.
- Use merge trains to avoid semantic conflicts on busy branches.
Why → Policy enforced at merge time covers everyone consistently.
Interview tip → Merge trains test each MR on top of the queue.
More on GitLab CI
How does GitLab CI/CD work at a high level?BeginnerWhat is a GitLab Runner and what executors exist?IntermediateWhat are the types of runners (shared, group, project) and tags?IntermediateHow do `rules:` work and how do they replace `only/except`?IntermediateWhat are workflow rules and how do they prevent duplicate pipelines?AdvancedHow do artifacts and cache differ in GitLab CI?Intermediate