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.
More on SAST, SCA and secrets scanning in CI
gitleaks fails the PR on `tests/fixtures/fake_rsa.pem` and `testdata/aws_creds.json`, which only contain dummy valuesBeginnergitleaks passes locally but the CI job reports 40 old leaks nobody touched in this PRIntermediate`fatal: ambiguous argument 'origin/main..HEAD': unknown revision` in the secrets-scan stepBeginnerSemgrep flags `subprocess.run(cmd, shell=True)` in a script where `cmd` is a hard-coded constantBeginnerSemgrep in CI reports findings in `node_modules/`, `vendor/` and minified `dist/*.js`BeginnerSemgrep job takes 35 minutes and gets killed with `exit code 137`Intermediate