When should a SAST rule be blocking vs advisory in production pipelines?
AdvancedProductionSecurity Gates & Vulnerability Management
Answer
A rule earns blocking status only when its measured precision is high (we use above ~90% true positives over the last few hundred findings), the issue is severe (injection, deserialization, hard-coded creds, disabled TLS verification) and the fix is clear. Everything else stays advisory as PR comments.
We track per-rule triage outcomes in the findings platform; a blocking rule whose false-positive rate creeps up is demoted. Semgrep policies or CodeQL query suites let us run different rule sets for "block" and "comment" modes.
More on Security Gates & Vulnerability Management
How do you design security gate thresholds that protect production without blocking delivery?IntermediateSketch where security gates sit in a delivery pipeline.BeginnerWhat are typical vulnerability remediation SLAs in production?BeginnerHow do you run a vulnerability exception (risk acceptance) process?IntermediateHow do you prioritise vulnerabilities beyond CVSS?IntermediateWhy do you gate on "new findings only" and how is this implemented?Intermediate