test: OWASP dependency-check cache hand-off (do not merge)#15
Open
tdcmeehan wants to merge 3 commits into
Open
test: OWASP dependency-check cache hand-off (do not merge)#15tdcmeehan wants to merge 3 commits into
tdcmeehan wants to merge 3 commits into
Conversation
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.
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
ddcaa91 to
7814e7d
Compare
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Throwaway PR to verify the dependency-check job restores the hydrated NVD cache and scans with autoUpdate=false. Do not merge.