Skip to content

Commit 927b176

Browse files
committed
github/actions: Generate SBOM
1 parent e375aca commit 927b176

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ jobs:
4444
- name: Print supported platforms
4545
run: go tool dist list
4646

47+
- name: Install syft
48+
run: |
49+
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
50+
syft version
51+
4752
- name: Set ui_file
4853
id: vars
4954
run: |
@@ -70,4 +75,11 @@ jobs:
7075
UI_SEPARATOR: "--------UI--------"
7176
UI_FILE: ${{ steps.vars.outputs.ui_file }}
7277
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
73-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
78+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
79+
80+
- name: Generate SBOM
81+
uses: anchore/sbom-action@v0
82+
with:
83+
path: .
84+
artifact-name: sbom.spdx
85+
upload-artifact-retention: 14

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ changelog:
4949
filters:
5050
exclude:
5151
- '^docs:'
52-
- '^test:'
52+
- '^test:'

0 commit comments

Comments
 (0)