Skip to content

Commit 429be1f

Browse files
committed
ci: install syft from a prebuilt binary in the release workflow
go run syft@latest fails whenever syft's minimum Go version passes the pinned toolchain; v1.45.1 now requires go 1.26 and broke the v0.3.0 tag build at the SBOM step. anchore/sbom-action downloads a release binary and is immune to that drift.
1 parent 6334d12 commit 429be1f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,18 @@ jobs:
2626
run: make package VERSION="${GITHUB_REF_NAME}"
2727

2828
- name: Generate source SBOM
29+
# Prebuilt syft binary: `go run syft@latest` breaks whenever syft's
30+
# minimum Go version passes the pinned toolchain (it did on v1.45.1).
31+
uses: anchore/sbom-action@v0
32+
with:
33+
path: .
34+
format: spdx-json
35+
output-file: dist/agentpantry_${{ github.ref_name }}_source.spdx.json
36+
upload-artifact: false
37+
upload-release-assets: false
38+
39+
- name: Checksum source SBOM
2940
run: |
30-
go run github.com/anchore/syft/cmd/syft@latest dir:. -o spdx-json="dist/agentpantry_${GITHUB_REF_NAME}_source.spdx.json"
3141
cd dist
3242
sha256sum "agentpantry_${GITHUB_REF_NAME}_source.spdx.json" >> checksums.txt
3343

0 commit comments

Comments
 (0)