Skip to content

test: OWASP dependency-check cache hand-off (do not merge)#15

Open
tdcmeehan wants to merge 3 commits into
masterfrom
owasp-ci-test
Open

test: OWASP dependency-check cache hand-off (do not merge)#15
tdcmeehan wants to merge 3 commits into
masterfrom
owasp-ci-test

Conversation

@tdcmeehan

Copy link
Copy Markdown
Owner

Throwaway PR to verify the dependency-check job restores the hydrated NVD cache and scans with autoUpdate=false. Do not merge.

tdcmeehan added 3 commits June 3, 2026 16:16
The owasp dependency-check job intermittently failed PRs with
'Missing base report'. Root cause: on an Actions cache miss the scan
did a from-scratch NVD pull from the rate-limited NVD API, which often
timed out (HTTP 503/524). With -DfailOnError=false this left no report,
so the compare step failed. The failure was unrelated to PR contents.

Move the NVD update into a scheduled hydration workflow that publishes
the NVD database to the Actions cache, and have PR runs restore that
cache and scan with -DautoUpdate=false so they never contact the NVD
API. This also covers fork PRs, which can read caches created on the
base repo's default branch. If the database is unavailable the PR job
neutralizes with a warning instead of red-failing.

- Add owasp-nvd-hydrate.yml: scheduled update-only with retries
- maven-owasp-scan: add auto-update input; drop bogus nvdApiAnalyzerEnabled
- owasp-dependency-check: restore hydrated DB, autoUpdate=false, neutralize on miss
hashFiles() can only read files under GITHUB_WORKSPACE, but the NVD data
directory is in /tmp, so the guard always evaluated empty and the cache
save was skipped. Gate on the update step's outcome instead.
@github-actions

github-actions Bot commented Jun 3, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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.

1 participant