Compliance requires that every pipeline run a license scan that teams cannot disable.
AdvancedScenarioGitLab CI
Answer
Situation read → Non-removable pipeline stages.
What I'd do →
- Use pipeline execution policies (or compliance frameworks with compliance pipelines) to inject the job from a central project.
- Restrict who may edit the policy project.
- Block merges on policy violations via merge request approval policies.
Why → Controls injected from outside the project cannot be deleted by project maintainers.
Interview tip → Same principle as the Jenkins golden pipeline.
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