Interview Prep/DevSecOps/Supply Chain Security

What branch protection settings do you consider the minimum for production repositories?

IntermediateScenarioSupply Chain Security
Answer

Situation read → The repo is the root of trust for everything built from it.

What I'd do →

  1. Require pull requests with at least one approval, and dismiss stale approvals on new commits.
  2. Require code owner review for sensitive paths (.github/workflows/, terraform/).
  3. Require status checks: tests, SAST, secrets, SCA.
  4. Disallow force pushes and deletions; include administrators.
  5. Require signed commits or verified tags for releases where policy needs it.
  6. Use rulesets and protected environments for deploy approval.

Why → One person alone cannot push code to production.

Interview tip → Protect the workflow files with CODEOWNERS; they are code that holds secrets.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply Chain Security