Skip to content

Commit 269cb56

Browse files
committed
add sonatype
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
1 parent dffeebd commit 269cb56

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/vulnerability-scan.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,24 @@ jobs:
6464
go-version-file: go.mod
6565
- name: Scan
6666
run: go run github.com/google/osv-scanner/v2/cmd/osv-scanner@latest scan --lockfile=go.mod || (( $? > 1 && $? < 127 ))
67+
68+
sonatype:
69+
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'hyperledger/fabric')
70+
runs-on: ${{ github.repository == 'hyperledger/fabric' && 'fabric-ubuntu-22.04' || 'ubuntu-22.04' }}
71+
strategy:
72+
fail-fast: false
73+
matrix:
74+
ref:
75+
- main
76+
- release-2.5
77+
steps:
78+
- uses: actions/checkout@v4
79+
with:
80+
ref: ${{ matrix.ref }}
81+
- uses: actions/setup-go@v5
82+
with:
83+
go-version: 1.24.2
84+
- run: go list -json -deps ./... > go.list
85+
- uses: sonatype-nexus-community/nancy-github-action@v1.0.3
86+
# with:
87+
# nancyCommand: 'sleuth --exclude-vulnerability CVE-2023-42319,CVE-2022-37450'

0 commit comments

Comments
 (0)