Skip to content

Commit 0a5124b

Browse files
fix jq for the sigstore bundles
Signed-off-by: Ramon Petgrave <[email protected]>
1 parent fbeecf0 commit 0a5124b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/generate-builder/builder-fetch.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ chmod a+x "$VERIFIER_RELEASE_BINARY"
101101
"$BUILDER_RELEASE_BINARY" || exit 6
102102

103103
builder_commit=$(gh api /repos/"$BUILDER_REPOSITORY"/git/ref/tags/"$builder_tag" | jq -r '.object.sha')
104-
provenance_commit=$(jq -r '.payload' <"$BUILDER_RELEASE_BINARY.intoto.jsonl" | base64 -d | jq -r '.predicate.materials[0].digest.sha1')
104+
provenance_commit=$(jq -r '.dsseEnvelope.payload' <"$BUILDER_RELEASE_BINARY.intoto.jsonl" | base64 -d | jq -r '.predicate.materials[0].digest.sha1')
105105
if [[ "$builder_commit" != "$provenance_commit" ]]; then
106106
echo "Builder commit sha $builder_commit != provenance material $provenance_commit"
107107
exit 5

internal/builders/generic/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ The project generates SLSA provenance with the following values.
288288
| `buildType` | `"https://github.com/slsa-framework/slsa-github-generator/generic@v1"` | Identifies a generic GitHub Actions build. |
289289
| `metadata.buildInvocationID` | `"[run_id]-[run_attempt]"` | The GitHub Actions [`run_id`](https://docs.github.com/en/actions/learn-github-actions/contexts#github-context) does not update when a workflow is re-run. Run attempt is added to make the build invocation ID unique. |
290290

291-
**Note**: The generated provenance will probably be wrapped in a [DSSE](https://github.com/secure-systems-lab/dsse) envelope and encoded in base64. Check the human-readable result running `cat encoded-artifact.intoto.jsonl | jq -r '.payload' | base64 -d | jq`.
291+
**Note**: The generated provenance will probably be wrapped in a [DSSE](https://github.com/secure-systems-lab/dsse) envelope and encoded in base64. Check the human-readable result running `cat encoded-artifact.intoto.jsonl | jq -r '.dsseEnvelope.payload' | base64 -d | jq`.
292292

293293
### Provenance Example
294294

0 commit comments

Comments
 (0)