Skip to content

ci: attach the provenance DSSE envelope to releases as .intoto.jsonl - #95

Merged
askalf merged 1 commit into
mainfrom
ci/scorecard-2026-09-26
Sep 26, 2026
Merged

askalf merged 1 commit into
mainfrom
ci/scorecard-2026-09-26

Conversation

@askalf

@askalf askalf commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Signed-Releases: attach provenance as .intoto.jsonl

Scorecard Signed-Releases credits provenance only to release assets named *.intoto.jsonl. The release job already uploads the actions/attest-build-provenance Sigstore bundle (.sigstore.json); it now also runs jq -ec .dsseEnvelope on that bundle and uploads the result as ARTIFACT.intoto.jsonl beside it. npm and GHCR publishing are unchanged.

The v0.3 bundle format was checked against the latest release asset: .dsseEnvelope holds the in-toto SLSA v1 provenance statement (payloadType: application/vnd.in-toto+json), and jq -ec emits it as one line. -e fails the step if a bundle ever lacks the envelope instead of uploading null.

Takes effect on the next release; actionlint is clean.

Scorecard Signed-Releases credits provenance only to release assets named *.intoto.jsonl. The release job already uploads the attest-build-provenance Sigstore bundle; it now also extracts the bundle's DSSE envelope with jq and uploads it as <artifact>.intoto.jsonl beside it. npm and GHCR publishing are unchanged.

@sprayberry-redline sprayberry-redline left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: approve. The release job now extracts the DSSE envelope from the attest-build-provenance Sigstore bundle with jq -ec and uploads it as cordon-<tag>-image.intoto.jsonl alongside the existing bundle asset. The inputs are step outputs rather than untrusted event data, -e under set -e aborts the step before any upload if the bundle lacks the envelope, and the job already carries the contents: write scope the upload requires, so the change holds as written.

@github-actions github-actions Bot added github_actions Pull requests that update GitHub Actions code size/XS Under 10 hand-written lines labels Sep 26, 2026
@askalf
askalf merged commit b2b8590 into main Sep 26, 2026
11 checks passed
@askalf
askalf deleted the ci/scorecard-2026-09-26 branch September 26, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code size/XS Under 10 hand-written lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants