The security team wants SAST, dependency scanning and secret detection on every project without copy-paste.

IntermediateScenarioGitLab CI
Answer

Situation read → Standard scanners as policy.

What I'd do →

  1. Include GitLab's templates: Security/SAST.gitlab-ci.yml, Security/Dependency-Scanning.gitlab-ci.yml, Security/Secret-Detection.gitlab-ci.yml.
  2. Enforce them through a scan execution policy so projects cannot remove them.
  3. Review findings in the Vulnerability Report and set merge request approval rules for critical findings.

Why → Policies apply org-wide and survive edits to .gitlab-ci.yml.

Interview tip → Some scanners need Ultimate tier; know the free alternatives (Trivy, Semgrep, gitleaks).

All CI/CD questions Roadmap: GitLab CI/CD

More on GitLab CI