pip-audit or Trivy reports a CVE in a Python package, but `pip install -U` says it is already the latest
IntermediateTroubleshootingSAST, SCA and secrets scanning in CI
Answer
Likely causes → A pinned upper bound in another dependency holds it back, or the scanner reads a stale lockfile (requirements.txt, poetry.lock) rather than the installed env.
Diagnose →
pip-audit -r requirements.txt
pipdeptree -r -p cryptography
pip index versions cryptography
Fix → Bump the constraining parent, regenerate the lock (pip-compile --upgrade-package cryptography or poetry update cryptography), and rescan.
Prevent → Scan the lockfile that is actually deployed, and keep locks regenerated by automation.
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