Interview Prep/DevSecOps/Pipeline Security Scanning

How do you decide which findings should block a build and which should only warn?

IntermediateScenarioPipeline Security Scanning
Answer

Situation read → A gate policy needs to be simple enough that every developer can predict the result.

What I'd do →

  1. Block: verified secrets, Critical/High SCA with a fix available, new High SAST findings, Critical IaC misconfigurations (public buckets, open 0.0.0.0/0 on SSH).
  2. Warn: Medium and Low, issues with no fix, old baseline findings.
  3. Implement with exit codes: trivy image --severity HIGH,CRITICAL --ignore-unfixed --exit-code 1 app:1.2.3.
  4. Review the policy quarterly with the engineering leads.
  5. Provide an exception process with owner and expiry.

Why → --ignore-unfixed avoids blocking on things nobody can fix today.

Interview tip → Mention that policy lives in code, versioned and reviewed.

All DevSecOps questions Roadmap: Security in the pipeline

More on Pipeline Security Scanning