Skip to content

Commit 8ab3c20

Browse files
authored
fix(ci): use tag reference for SLSA builder (#417)
## Summary Fixes the SLSA Level 3 release workflow failure where the builder rejects SHA references. **Error:** `Invalid ref: 5a775b367a56d5bd118a224a811bba288150a563. Expected ref of the form refs/tags/vX.Y.Z` **Root cause:** The SLSA builder requires being invoked via a version tag reference (e.g., `@v2.0.0`) rather than a SHA hash. SHA pinning causes validation failures. **Fix:** Use `@v2.0.0` tag reference instead of SHA. **Note:** Also fixes incorrect version comment (was labeled v2.1.0 when using v2.0.0 SHA). ## Test Plan - [ ] After merge, re-run the release workflow for v0.17.0
2 parents a2cd65b + 3897147 commit 8ab3c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release-slsa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
id-token: write
7676
contents: write
7777
actions: read
78-
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@5a775b367a56d5bd118a224a811bba288150a563 # v2.1.0
78+
uses: slsa-framework/slsa-github-generator/.github/workflows/builder_go_slsa3.yml@v2.0.0
7979
with:
8080
go-version-file: go.mod
8181
config-file: .slsa-goreleaser/${{ matrix.target }}.yml

0 commit comments

Comments
 (0)