Skip to content

Commit 91f3680

Browse files
committed
update: release pipeline
1 parent 8ed8a9c commit 91f3680

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ jobs:
3232
go-version: 1.24
3333

3434
- name: Install dependencies
35-
run: go mod download
35+
run: |
36+
go mod download
37+
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
3638
3739
- name: Run GoReleaser
3840
uses: goreleaser/goreleaser-action@v6
41+
uses: anchore/sbom-action/[email protected] # installs syft
3942
with:
4043
distribution: goreleaser
4144
version: "~> v2"

.goreleaser.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@ checksum:
2222
algorithm: sha512
2323

2424
sboms:
25-
- id: default
26-
path: sboms
27-
formats:
28-
- cyclonedx-json
29-
- spdx-json
25+
- id: ipvsctl
26+
documents:
27+
- "${artifact}.sbom.json"
28+
cmd: syft
29+
args: ["$artifact", "--output", "cyclonedx-json=$document"]
30+
env:
31+
- SYFT_FILE_METADATA_CATALOGER_ENABLED=true
32+
artifacts: any
33+
3034

3135
release:
3236
extra_files:
33-
- glob: sboms/*.json
37+
- glob: dist/*.sbom.json
3438

3539
snapshot:
3640
version_template: "{{ .Tag }}-next"

0 commit comments

Comments
 (0)