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.
More on GitHub Actions and GitLab CI in Production
How do you organise reusable workflows for an organisation on GitHub?IntermediateHow do you reduce GitHub Actions minutes cost on private repos?IntermediateHow do you secure self-hosted runners?AdvancedHow do you design the GitHub Actions OIDC trust policy for AWS safely?AdvancedHow do you handle approvals and deployments across environments in GitHub Actions?IntermediateHow do you handle required checks when workflows use path filters or matrices?Advanced