Skip to content

Commit

Permalink
Merge pull request #31 from whiteducksoftware/feat/sbom
Browse files Browse the repository at this point in the history
feat: add Syft integration for SBOM generation in GoReleaser workflows
  • Loading branch information
philwelz authored Feb 4, 2025
2 parents fe7d849 + 3507af2 commit 5f27910
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 5f27910

Please sign in to comment.