Interview Prep/CI/CD/GitHub Actions and GitLab CI in Production

How would you enforce that every repo runs security scans, no matter what the team puts in its pipeline?

AdvancedProductionGitHub Actions and GitLab CI in Production
Answer

On GitHub: organisation rulesets requiring a central security workflow (CodeQL, Trivy, gitleaks) to pass, plus CODEOWNERS on workflow files. On GitLab: scan/pipeline execution policies (security policy projects) that inject jobs into every pipeline, and compliance frameworks. On Jenkins: shared library standardPipeline() that wraps team stages, plus Organization Folder templates. Back it up with admission control in the cluster that rejects images lacking a signature or attestation, so skipping the scan means the image cannot run.

All CI/CD questions Roadmap: GitLab CI/CD

More on GitHub Actions and GitLab CI in Production