-
Notifications
You must be signed in to change notification settings - Fork 178
Replace NVD with Sonatype OSS Index #2689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # 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) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? |
||
|
|
||
| on: | ||
| schedule: | ||
|
|
@@ -22,22 +22,22 @@ jobs: | |
| distribution: temurin | ||
| java-version: 21 | ||
|
|
||
| - name: Increase gradle daemon heap size | ||
| run: | | ||
| sed -i "s/org.gradle.jvmargs=/org.gradle.jvmargs=-Xmx3g /" gradle.properties | ||
|
|
||
| - uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 | ||
|
|
||
| - run: ./gradlew dependencyCheckAnalyze | ||
| - run: ./gradlew ossIndexAudit | ||
| id: audit | ||
| continue-on-error: true | ||
| env: | ||
| NVD_API_KEY: ${{ secrets.NVD_API_KEY }} | ||
| SONATYPE_OSS_INDEX_USER: ${{ secrets.SONATYPE_OSS_INDEX_USER }} | ||
| SONATYPE_OSS_INDEX_PASSWORD: ${{ secrets.SONATYPE_OSS_INDEX_PASSWORD }} | ||
| DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | ||
|
|
||
| - name: Upload report | ||
| if: always() | ||
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | ||
| with: | ||
| path: "**/build/reports" | ||
| - name: Print vulnerability report | ||
| if: steps.audit.outcome == 'failure' | ||
| run: | | ||
| echo "=== OSS Index Vulnerability Report ===" | ||
| cat oss-index-cyclonedx-bom.json | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that copilot reviews aren't enabled in the instrumentation repo |
||
| exit 1 | ||
|
|
||
| workflow-notification: | ||
| permissions: | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -80,8 +80,3 @@ configurations { | |
| } | ||
| } | ||
| } | ||
|
|
||
| // Skip OWASP dependencyCheck task on test module | ||
| dependencyCheck { | ||
| skip = true | ||
| } | ||
There was a problem hiding this comment.
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