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 →

  1. Use pipeline execution policies (or compliance frameworks with compliance pipelines) to inject the job from a central project.
  2. Restrict who may edit the policy project.
  3. 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.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI