Interview Prep/DevSecOps/Building a DevSecOps Program

Why do we put security controls into shared pipeline templates instead of asking each team to add them?

BeginnerProductionBuilding a DevSecOps Program
Answer

Because opt-in security gets 20% adoption and opt-out gets 95%. A reusable workflow or CI include means one change rolls out scanning to every repo, versions are pinned centrally and teams cannot quietly drop a step.

# .github/workflows/ci.yml in each repo
jobs:
  security:
    uses: acme/platform-workflows/.github/workflows/security.yml@v3
    secrets: inherit

We pair this with a rule (GitHub ruleset "required workflows" or a GitLab compliance pipeline) so the security job cannot be removed from the repo side.

All DevSecOps questions

More on Building a DevSecOps Program