Skip to content

Replace NVD with Sonatype OSS Index#2689

Open
trask wants to merge 1 commit intoopen-telemetry:mainfrom
trask:align-generate-release-contributors
Open

Replace NVD with Sonatype OSS Index#2689
trask wants to merge 1 commit intoopen-telemetry:mainfrom
trask:align-generate-release-contributors

Conversation

@trask
Copy link
Member

@trask trask commented Mar 13, 2026

Looks like a new CVE backing that better understands maven coordinates and so the suppressions we maintained previously should no longer be needed.

Ported from open-telemetry/opentelemetry-java-instrumentation#16445

Looks like a new CVE backing that better understands maven coordinates and so the suppressions we maintained previously should no longer be needed.

Ported from open-telemetry/opentelemetry-java-instrumentation#16445
@trask trask requested a review from a team as a code owner March 13, 2026 18:14
Copilot AI review requested due to automatic review settings March 13, 2026 18:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces the NVD-backed OWASP dependency-check with Sonatype OSS Index for vulnerability scanning. OSS Index better understands Maven coordinates, eliminating the need for false-positive suppressions.

Changes:

  • Swapped the OWASP dependency-check Gradle plugin for the Sonatype scan Gradle plugin across build configuration
  • Removed the now-unnecessary dependency-check-suppressions.xml file
  • Updated the daily CI workflow to use ossIndexAudit with new secrets and a simplified report step

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
buildSrc/build.gradle.kts Replace OWASP plugin dependency with Sonatype scan plugin
buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts Configure ossIndexAudit block replacing dependencyCheck
custom-checks/build.gradle.kts Remove now-unnecessary dependencyCheck { skip = true }
buildscripts/dependency-check-suppressions.xml Delete suppressions file (no longer needed)
.github/workflows/owasp-dependency-check-daily.yml Update workflow to use new plugin, secrets, and reporting
.github/repository-settings.md Update secret documentation

if: steps.audit.outcome == 'failure'
run: |
echo "=== OSS Index Vulnerability Report ==="
cat oss-index-cyclonedx-bom.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I didn't see this suggestion made for the instrumentation repo. Wonder why its different here...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that copilot reviews aren't enabled in the instrumentation repo

Comment on lines -25 to -27
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
- Generated at <https://nvd.nist.gov/developers/request-an-api-key>
- Key is associated with [@trask](https://github.com/trask)'s gmail address
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'll remove this secret after the PR is merged

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a couple small questions.

# the benefit of this over renovate is that this also analyzes transitive dependencies
# while renovate (at least currently) only analyzes top-level dependencies
name: OWASP dependency check (daily)
name: OSS Index dependency audit (daily)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to change the name of this workflow file too then?

if: steps.audit.outcome == 'failure'
run: |
echo "=== OSS Index Vulnerability Report ==="
cat oss-index-cyclonedx-bom.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird, I didn't see this suggestion made for the instrumentation repo. Wonder why its different here...

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.

4 participants