Skip to content

Commit 35d5432

Browse files
committed
ci(release): install syft for SBOM generation in release workflow (cloudnative-pg#10288)
The release workflow runs `goreleaser release` which triggers SBOM generation via the `sboms` section in `.goreleaser.yml`. GoReleaser defaults to using `syft` for this, but syft was never installed in the release workflow, causing release builds to fail. The CD workflow was unaffected because it runs `goreleaser build` which skips SBOM generation entirely. Ref: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/23042068998 Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com> (cherry picked from commit 3f18c3f)
1 parent 5ee5f9f commit 35d5432

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ jobs:
180180
echo GOPATH=$(go env GOPATH) >> $GITHUB_ENV
181181
echo PWD=$(pwd) >> $GITHUB_ENV
182182
echo "$GPG_PRIVATE_KEY" > gpg_signing_key.asc
183+
-
184+
name: Install Syft
185+
uses: anchore/sbom-action/download-syft@57aae528053a48a3f6235f2d9461b05fbcb7366d # v0.23.1
183186
-
184187
name: Run GoReleaser
185188
id: goreleaser

0 commit comments

Comments
 (0)