Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/repository-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ private admin repo.

- `GPG_PASSWORD` - stored in OpenTelemetry-Java 1Password
- `GPG_PRIVATE_KEY` - stored in OpenTelemetry-Java 1Password
- `SONATYPE_OSS_INDEX_USER` - owned by [@jack-berg](https://github.com/jack-berg)
- `SONATYPE_OSS_INDEX_PASSWORD` - owned by [@jack-berg](https://github.com/jack-berg)
- `SONATYPE_GUIDE_PAT` - owned by [@jack-berg](https://github.com/jack-berg)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@jack-berg you'll need to create this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Will do thanks

- `SONATYPE_KEY` - owned by [@jack-berg](https://github.com/jack-berg)
- `SONATYPE_USER` - owned by [@jack-berg](https://github.com/jack-berg)

Expand Down
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: OSS Index dependency audit (daily)
name: Sonatype Guide dependency audit (daily)

on:
schedule:
Expand Down Expand Up @@ -29,14 +29,13 @@ jobs:
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 }}
SONATYPE_GUIDE_PAT: ${{ secrets.SONATYPE_GUIDE_PAT }}
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

- name: Print vulnerability report
if: steps.audit.outcome == 'failure'
run: |
echo "=== OSS Index Vulnerability Report ==="
echo "=== Sonatype Guide Vulnerability Report ==="
find . -name "oss-index-cyclonedx-bom.json" | xargs cat
exit 1

Expand Down
5 changes: 3 additions & 2 deletions buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ checkstyle {
}

ossIndexAudit {
username = System.getenv("SONATYPE_OSS_INDEX_USER") ?: ""
password = System.getenv("SONATYPE_OSS_INDEX_PASSWORD") ?: ""
// Guide PAT authentication ignores this, but the scan plugin requires it.
username = "unused"
password = System.getenv("SONATYPE_GUIDE_PAT") ?: ""
outputFormat = org.sonatype.gradle.plugins.scan.ossindex.OutputFormat.JSON_CYCLONE_DX_1_4
isPrintBanner = false
}
Expand Down
Loading