Interview Prep/DevSecOps/SAST, SCA and secrets scanning in CI

SCA gate blocks a release for a critical CVE that exists in a function your code never calls

AdvancedTroubleshootingSAST, SCA and secrets scanning in CI
Answer

Likely causes → SCA is version-based; it flags the package, not reachable code paths.

Diagnose → Check reachability: govulncheck ./... for Go reports only called vulnerable symbols; for other ecosystems use a reachability-capable SCA or inspect call sites with grep/IDE.

Fix → If unreachable and no fix exists, record a time-boxed exception with evidence (VEX not_affected with justification vulnerable_code_not_in_execute_path). Upgrade as soon as a fix ships.

Prevent → Gate on reachable + exploitable (EPSS/KEV) criticals, and expire exceptions automatically.

All DevSecOps questions Roadmap: Security in the pipeline

More on SAST, SCA and secrets scanning in CI