Skip to content

Commit a676d03

Browse files
dylanroscoverclaude
andcommitted
fix(ci): make slsa-verifier smoke job pass (repo flag + verifier v2.7.0)
Two issues blocked the verify job after provenance began publishing: 1. `gh release download` ran on a checkout-less runner, so it couldn't infer the repo ("fatal: not a git repository"). Pass it explicitly with -R. 2. The verify job pinned slsa-verifier v2.6.0, which rejects the `dsse:0.0.1` Rekor tlog entry the v2.1.0 generator records ("unexpected tlog entry type: expected intoto:0.0.2, got dsse:0.0.1"). Bump to v2.7.0 — the same version the generator uses internally. Verified locally against the published v2.12.3 release assets: slsa-verifier v2.7.0 returns "PASSED: SLSA verification passed" for the signed installer. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent edfd73d commit a676d03

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-installer.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,10 @@ jobs:
200200
steps:
201201
- name: install slsa-verifier
202202
run: |
203-
VERIFIER_VERSION=v2.6.0
203+
# v2.7.0+ is required: the v2.1.0 generator records a `dsse:0.0.1`
204+
# Rekor tlog entry, which v2.6.0 rejects ("expected intoto:0.0.2, got
205+
# dsse:0.0.1"). v2.7.0 is also what the generator uses internally.
206+
VERIFIER_VERSION=v2.7.0
204207
curl -sSL \
205208
"https://github.com/slsa-framework/slsa-verifier/releases/download/${VERIFIER_VERSION}/slsa-verifier-linux-amd64" \
206209
-o /usr/local/bin/slsa-verifier
@@ -214,7 +217,10 @@ jobs:
214217

215218
- name: download provenance attestation from release
216219
run: |
220+
# This job has no checkout, so `gh release download` can't infer the
221+
# repo from git context ("fatal: not a git repository"). Pass it with -R.
217222
gh release download "${GITHUB_REF_NAME}" \
223+
-R "${GITHUB_REPOSITORY}" \
218224
--pattern 'owlette-installer.intoto.jsonl' \
219225
--dir .
220226
env:

0 commit comments

Comments
 (0)