Skip to content

Commit

Permalink
github/actions: Generate SBOM
Browse files Browse the repository at this point in the history
  • Loading branch information
jkralik committed Jan 26, 2024
1 parent e375aca commit 927b176
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
- name: Print supported platforms
run: go tool dist list

- name: Install syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
syft version
- name: Set ui_file
id: vars
run: |
Expand All @@ -70,4 +75,11 @@ jobs:
UI_SEPARATOR: "--------UI--------"
UI_FILE: ${{ steps.vars.outputs.ui_file }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

- name: Generate SBOM
uses: anchore/sbom-action@v0
with:
path: .
artifact-name: sbom.spdx
upload-artifact-retention: 14
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ changelog:
filters:
exclude:
- '^docs:'
- '^test:'
- '^test:'

0 comments on commit 927b176

Please sign in to comment.