Skip to content

Commit

Permalink
feat: add Syft integration for SBOM generation in GoReleaser workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
philwelz committed Jan 30, 2025
1 parent fe7d849 commit 3507af2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Download Syft
uses: anchore/sbom-action/download-syft@v0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand All @@ -48,6 +50,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Download Syft
uses: anchore/sbom-action/download-syft@v0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ changelog:
- "^.github:"
- "^.vscode:"

sboms:
- artifacts: archive
cmd: syft

archives:
- format: zip
# this name template makes the OS and Arch compatible with the results of `uname`.
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ changelog:
- "^.github:"
- "^.vscode:"

sboms:
- artifacts: archive
cmd: syft

archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
Expand Down

0 comments on commit 3507af2

Please sign in to comment.