Skip to content

Commit c96648c

Browse files
authored
Add SBOMs to release (#274)
1 parent dfe28db commit c96648c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ jobs:
114114
env:
115115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116116
if: ${{ startsWith(github.ref, 'refs/tags/') }}
117+
- name: Download Syft
118+
uses: anchore/sbom-action/[email protected]
117119
- name: Run GoReleaser
118120
uses: goreleaser/goreleaser-action@v3
119121
with:

.goreleaser.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ before:
22
hooks:
33
- go mod tidy
44
- go mod verify
5+
56
builds:
67
- env:
78
- CGO_ENABLED=0
@@ -32,14 +33,21 @@ builds:
3233
- all=-trimpath={{.Env.GOPATH}}
3334
asmflags:
3435
- all=-trimpath={{.Env.GOPATH}}
36+
37+
sboms:
38+
- artifacts: archive
39+
3540
archives:
3641
- format_overrides:
3742
- goos: windows
3843
format: zip
44+
3945
checksum:
4046
name_template: 'sha256sums.txt'
47+
4148
changelog:
4249
skip: true
50+
4351
brews:
4452
- tap:
4553
owner: nginxinc

0 commit comments

Comments
 (0)