feat: allow configuration of Sonatype Guide / OSS Index cache validity time#507
Merged
jeremylong merged 6 commits intodependency-check:mainfrom May 1, 2026
Conversation
dd743b1 to
a76efd9
Compare
813a7b1 to
82f405f
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support in the Gradle plugin DSL to configure how long OSS Index (Sonatype Guide) cache entries remain valid, and updates build tooling to support testing against dependency-check-core snapshots.
Changes:
- Add
analyzers.ossIndex.validForHoursto the extension and propagate it into dependency-check-coreSettings. - Enable resolving OWASP snapshot artifacts via Sonatype snapshots repo; bump ODC to
12.2.2-SNAPSHOT. - Minor maintenance updates: JUnit version bump and dependabot ignore tweaks.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/groovy/org/owasp/dependencycheck/gradle/tasks/ConfiguredTask.groovy |
Maps the new OSS Index cache validity setting into core Settings. |
src/main/groovy/org/owasp/dependencycheck/gradle/extension/OssIndexExtension.groovy |
Adds validForHours to the OSS Index analyzer DSL. |
settings.gradle.kts |
Adds a snapshots-only Sonatype repo (restricted to org.owasp). |
gradle/libs.versions.toml |
Bumps ODC to a snapshot and updates the JUnit BOM version. |
.github/dependabot.yml |
Reduces dependabot noise by ignoring major updates for wrapper/JUnit BOM. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Chad Wilson <[email protected]>
Signed-off-by: Chad Wilson <[email protected]>
Always retrieve from local as a last resort; reduces changes of cache poisoning. Gradle doesn't look here normally anyway, as it has its own cache, so it's mainly useful for local development. Signed-off-by: Chad Wilson <[email protected]>
Signed-off-by: Chad Wilson <[email protected]>
82f405f to
32df2ba
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Chad Wilson <[email protected]>
Signed-off-by: Chad Wilson <[email protected]>
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.
Allows overriding the configuration for how long to keep OSS Index cache entries for.
Minor
masteragainst published ODC core snapshots