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

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.

All DevSecOps questions Roadmap: Security in the pipeline

More on SAST, SCA and secrets scanning in CI