Skip to content

Commit f933a44

Browse files
madpahclaude
andcommitted
test(ci): add OSS Index compat integration test step
Exercises the --username/--token auth path against OSS Index, distinct from the Guide bearer token path. Step is skipped when OSSI_USERNAME secret is not configured. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Paul Horton <phorton@sonatype.com>
1 parent 7b854f4 commit f933a44

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ jobs:
8888
go list -json -m all > dist/deps.out && ./nancy sleuth --token "$SONATYPE_GUIDE_TOKEN" --exclude-vulnerability "$IT_EXCLUDED_VULNS" < dist/deps.out
8989
go list -m all > dist/deps.out && ./nancy sleuth --token "$SONATYPE_GUIDE_TOKEN" --exclude-vulnerability "$IT_EXCLUDED_VULNS" < dist/deps.out
9090
91+
- name: Run OSS Index compat integration tests
92+
if: ${{ secrets.OSSI_USERNAME != '' }}
93+
env:
94+
OSSI_USERNAME: ${{ secrets.OSSI_USERNAME }}
95+
OSSI_TOKEN: ${{ secrets.OSSI_TOKEN }}
96+
IT_EXCLUDED_VULNS: CVE-2021-3121,CVE-2022-21698,CVE-2022-29153,sonatype-2021-1401,CVE-2023-32731,CVE-2023-45142,CVE-2024-10086,CVE-2023-29407,CVE-2023-29408,CVE-2022-41727
97+
run: |
98+
go list -json -deps ./... | ./nancy sleuth --username "$OSSI_USERNAME" --token "$OSSI_TOKEN"
99+
go list -json -m all | ./nancy sleuth --username "$OSSI_USERNAME" --token "$OSSI_TOKEN" --exclude-vulnerability "$IT_EXCLUDED_VULNS"
100+
91101
- name: Upload test results
92102
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
93103
if: always()

0 commit comments

Comments
 (0)