Wire up NVD API key for the owasp Gradle task - #4725
Open
epugh wants to merge 3 commits into
Open
Conversation
The ./gradlew owasp task fails with an error from NvdApiDataSource because NVD heavily rate-limits its CVE data feed for unauthenticated requests. Wire the plugin's nvd.apiKey through a -PnvdApiKey property or NVD_API_KEY env var, and document the requirement. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Author
|
This is paired with #4720, which does the same thing in 9x. I played around with this, and I think it identified some CVE's that |
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.
Summary
./gradlew owaspcurrently fails with an error fromNvdApiDataSourcebecause NVD heavily rate-limits its CVE data feed for unauthenticated requests.dependencyCheck { nvd { apiKey = ... } }extension to a-PnvdApiKey=<key>project property orNVD_API_KEYenvironment variable, so the task can authenticate against NVD's API.dev-docs/FAQ.adocanddev-docs/gradle-help/workflow.txt.Test plan
./gradlew helpsucceeds with no arguments./gradlew help -PnvdApiKey=<key>succeeds and the property is picked up by the extension./gradlew owasp -Pvalidation.owasp=true -PnvdApiKey=<a real NVD key>completes an actual scan (not run here — only verified configuration wiring, not a live NVD API call)