Skip to content

Commit 9f3dd0d

Browse files
authored
build: Add support for SBOM generation (#110)
- https://goreleaser.com/customization/sbom/ Signed-off-by: Mert Şişmanoğlu <mertssmnoglu@gmail.com>
1 parent e33faa9 commit 9f3dd0d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ archives:
5656
- goos: windows
5757
formats: zip
5858

59+
sboms:
60+
- id: capture
61+
cmd: syft
62+
args: ["scan", "$artifact", "--output", "spdx-json=$document"]
63+
artifacts: archive
64+
documents:
65+
- "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}.sbom.json"
66+
5967
checksum:
6068
# Generate checksum files to confirm the integrity of the files.
6169
# `sha256sum <file>`

0 commit comments

Comments
 (0)