Interview Prep/DevSecOps/Security Gates & Vulnerability Management

Why do you gate on "new findings only" and how is this implemented?

IntermediateProductionSecurity Gates & Vulnerability Management
Answer

Gating on total findings blocks every PR in a legacy repo for problems the author did not create. Diff-based gating keeps the bar rising without freezing delivery.

Implementations: Semgrep --baseline-commit, SonarQube "new code" quality gate, GitHub code scanning alerts only on the PR diff, Trivy/Grype comparisons against the main branch result.

semgrep ci --baseline-commit "$(git merge-base origin/main HEAD)"

Old debt is handled separately with SLAs and burn-down targets.

All DevSecOps questions Roadmap: Security in the pipeline

More on Security Gates & Vulnerability Management