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 →
- Include GitLab's templates:
Security/SAST.gitlab-ci.yml,Security/Dependency-Scanning.gitlab-ci.yml,Security/Secret-Detection.gitlab-ci.yml. - Enforce them through a scan execution policy so projects cannot remove them.
- 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).
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