Dependency-Check job fails with `NVD Returned Status Code: 403` or hangs for an hour updating the database
IntermediateTroubleshootingSAST, SCA and secrets scanning in CI
Answer
Likely causes → The NVD API 2.0 heavily rate-limits callers without an API key, and every CI run downloads the full database from scratch.
Diagnose → Look for NVD API request failures or Rate limit exceeded in logs; check the job runs with an empty data directory each time.
Fix → Request an NVD API key and pass it, and cache the data directory:
dependency-check.sh --nvdApiKey "$NVD_API_KEY" --data /cache/odc-data --scan .
Prevent → Run a scheduled job that updates a shared data directory or mirror and have PR jobs run with --noupdate.
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