Skip to content

ci: wire real SLSA provenance subjects from release archives#3

Merged
YoungDan merged 1 commit into
mainfrom
ci/slsa-provenance-subjects
May 29, 2026
Merged

ci: wire real SLSA provenance subjects from release archives#3
YoungDan merged 1 commit into
mainfrom
ci/slsa-provenance-subjects

Conversation

@YoungDan
Copy link
Copy Markdown
Member

Summary

  • The SLSA provenance job passed base64-subjects: "" (empty) — it would attest nothing.
  • Add a hashes job that downloads all build artifacts and base64-encodes the sha256sum of the distributable archives (.tar.gz / .zip, excluding sidecars).
  • Feed that into generator_generic_slsa3.yml and gate provenance behind publish so the GitHub Release exists before the .intoto.jsonl attestation is uploaded.

Job graph

build -> hashes + publish -> provenance

Test plan

  • CI green (fmt/clippy/test on 3 OSes)
  • First v*.*.* tag: provenance attaches a non-empty .intoto.jsonl covering all 5 archives

Add a hashes job that base64-encodes sha256sums of the distributable
archives and feed them to the SLSA generator base64-subjects input (was
empty). Gate provenance behind publish so the release exists before the
attestation is uploaded.
@YoungDan YoungDan merged commit 2d2ea40 into main May 29, 2026
4 checks passed
@YoungDan YoungDan deleted the ci/slsa-provenance-subjects branch May 29, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant