File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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/download-syft@v0.7.0 # installs syft
3942 with :
4043 distribution : goreleaser
4144 version : " ~> v2"
Original file line number Diff line number Diff line change @@ -22,15 +22,19 @@ checksum:
2222 algorithm : sha512
2323
2424sboms :
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
3135release :
3236 extra_files :
33- - glob : sboms/* .json
37+ - glob : dist/*.sbom .json
3438
3539snapshot :
3640 version_template : " {{ .Tag }}-next"
You can’t perform that action at this time.
0 commit comments