Skip to content

Commit c5fc3e6

Browse files
committed
github/actions: fix extension for SBOM file
1 parent 927b176 commit c5fc3e6

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,19 @@ jobs:
7777
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
7878
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
7979

80+
# Needed for syft to generate SBOM also for npm dependencies
81+
- name: Install npm
82+
uses: actions/setup-node@v4
83+
with:
84+
node-version: 18
85+
- name: Get npm dependencies
86+
run: |
87+
cd web
88+
npm install
89+
8090
- name: Generate SBOM
8191
uses: anchore/sbom-action@v0
8292
with:
8393
path: .
84-
artifact-name: sbom.spdx
94+
artifact-name: sbom.spdx.json
8595
upload-artifact-retention: 14

0 commit comments

Comments
 (0)