-
Notifications
You must be signed in to change notification settings - Fork 978
Replace NVD with Sonatype OSS Index #8186
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 5 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 |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # the benefit of this over renovate is that this also analyzes transitive dependencies | ||
| # while renovate (at least currently) only analyzes top-level dependencies | ||
| name: OSS Index dependency audit (daily) | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "30 1 * * *" # daily at 1:30 UTC | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| analyze: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
|
||
| - uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 | ||
| with: | ||
| distribution: temurin | ||
| java-version: 21 | ||
|
|
||
| - name: Set up gradle | ||
| uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2 | ||
|
|
||
| - run: ./gradlew ossIndexAudit | ||
| id: audit | ||
| continue-on-error: true | ||
| env: | ||
| 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: Print vulnerability report | ||
| if: steps.audit.outcome == 'failure' | ||
| run: | | ||
| echo "=== OSS Index Vulnerability Report ===" | ||
| find . -name "oss-index-cyclonedx-bom.json" | xargs cat | ||
| exit 1 | ||
|
|
||
| workflow-notification: | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| needs: | ||
| - analyze | ||
| if: always() | ||
| uses: ./.github/workflows/reusable-workflow-notification.yml | ||
| with: | ||
| success: ${{ needs.analyze.result == 'success' }} |
|
jack-berg marked this conversation as resolved.
Outdated
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ dependencies { | |
| implementation("org.mockito:mockito-core") | ||
| } | ||
|
|
||
| // Skip OWASP dependencyCheck task on test module | ||
| dependencyCheck { | ||
| skip = true | ||
| // Skip ossIndexAudit on test module | ||
| tasks.named("ossIndexAudit") { | ||
| enabled = false | ||
| } | ||
|
Member
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. Is there no analog for this? Or is it no longer applicable?
Member
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. Maybe this is what you referred to with the suppressions no longer being needed.
Member
Author
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. we're using a different plugin altogether now
Member
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 get that. But we skipped OWASP on testing-internal because it had dependencies that triggered OWASP. And now we're not doing that. That means the new plugin either doesn't consider the testing dependencies problematic or somehow automatically excludes testing modules like this or something equivalent. Just curious if you already know the answer.
Member
Author
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. oh, good point, I'll check this |
||
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.
TODO: reminder to myself to delete this secret once merged