OWASP Dependency-Check reports CVEs for `jquery` in a Java project that does not use jQuery
IntermediateTroubleshootingSAST, SCA and secrets scanning in CI
Answer
Likely causes → Dependency-Check identifies components by CPE matching on file names and metadata, which produces false positives (a webjar, a bundled docs folder, or a similarly named artifact).
Diagnose → Open the HTML report, check the "Evidence" for the match and which file it came from.
Fix → Suppress the specific false match with a scoped suppression file:
<suppress>
<notes>Bundled in javadoc, not shipped at runtime</notes>
<packageUrl regex="true">^pkg:javascript/jquery@.*$</packageUrl>
<cve>CVE-2020-11023</cve>
</suppress>
Run with --suppression suppression.xml.
Prevent → Prefer purl-based SCA (Trivy, Grype, OSV-Scanner) over CPE matching where possible; review suppressions every quarter.
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