Skip to content

Gate CI on known vulnerabilities in the shipped dependency graph - #740

Merged
zantvoort merged 1 commit into
mainfrom
build/dependency-scan
Oct 22, 2026
Merged

zantvoort merged 1 commit into
mainfrom
build/dependency-scan

Conversation

@zantvoort

Copy link
Copy Markdown
Collaborator

Fixes #242

The gate

org.owasp:dependency-check-maven:13.0.0 in the root plugin management, invoked explicitly and never bound to a phase: fails at CVSS 7 (the floor of High), skips test and provided scope (Spring Boot, Jackson and the drivers are the application's dependencies), reads the key from the NVD_API_KEY environment variable, writes HTML and JSON, .NET analyzer off since the runner has no dotnet.

A dependency-check job in ci.yml installs the reactor without tests, runs org.owasp:dependency-check-maven:aggregate, uploads target/dependency-check-report.*, and skips with a notice when the secret is absent (Dependabot runs and forks receive no secrets). The Maven cache keeps the NVD data under ~/.m2, so later runs pull deltas only.

Needs a secret

Request a free NVD API key at https://nvd.nist.gov/developers/request-an-api-key and add it as the NVD_API_KEY repository secret. Until then the job reports itself skipped. The first run with the key pulls the full feed, roughly ten minutes.

Pins (test and provided scope only)

PostgreSQL driver 42.7.4 to 42.7.11, MySQL connector 8.0.33 to 9.7.0, Jackson 2 core and jsr310 2.17.0 to 2.17.3, Jackson 3 3.0.0 to 3.0.4. Jackson 2.17 and 3.0 stay the floors the modules compile against.

Website

The npm alerts are Docusaurus build tooling; npm audit's suggested fix was a downgrade to 3.7.0. overrides for tinypool, proxy-addr, shell-quote and websocket-driver plus the non-breaking npm audit fix take the audit from 19 critical and 66 total to 0 critical and 47 total, with the site building after each step. The remaining highs are a long tail that only upstream Docusaurus moves. The CLI has no dependencies.

Left out

Pinning first-party actions to commit SHAs, marked lower priority in the issue.

OWASP Dependency-Check runs over compile and runtime scope in its own CI
job, failing at CVSS 7; test and provided scope are the application's
dependencies and stay out. The job skips where no NVD API key is
available. Stale test-scope driver and Jackson pins move to current
patches, and the website's build chain gets overrides for its critical
transitive advisories.

Fixes #242
@zantvoort zantvoort added this to the 1.16.0 milestone Oct 22, 2026
@zantvoort
zantvoort merged commit a942f2d into main Oct 22, 2026
10 checks passed
@zantvoort
zantvoort deleted the build/dependency-scan branch October 22, 2026 17:02
@codecov

codecov Bot commented Oct 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add dependency vulnerability scanning to CI

1 participant