Repository navigation
Attach build provenance attestations to release artifacts - #347
Conversation
|
Verified against the v4.3.2 release. The attestation is registered by the release workflow (run 31683011385) with the 5 zips from $ gh attestation verify github-nippou_v4.3.2_darwin_arm64.zip \
--repo masutaka/github-nippou \
--signer-workflow masutaka/github-nippou/.github/workflows/release.ymlThe signer is One thing worth noting: GitHub also generates a This second one is not visible anywhere in the UI — the Attestations page lists SLSA provenance only. It shows up through the API: $ digest=sha256:a7598c33787c7070f93505e4566939a551032a13be55b9f1bcba0cb6cba8a8d7 # darwin_arm64.zip of v4.3.2
$ gh api --method GET "repos/masutaka/github-nippou/attestations/${digest}" \
--jq '.attestations[].bundle.dsseEnvelope.payload | @base64d | fromjson | .predicateType'
https://slsa.dev/provenance/v1
https://in-toto.io/attestation/release/v0.2Since |
Closes #338
Attach SLSA build provenance to the release artifacts so that users can verify a binary was actually built by this repository's CI.
Changes
actions/attest-build-provenanceto thereleasejob (withid-token: writeandattestations: write)subject-checksumspoints atdist/github-nippou_<tag>_checksums.txt, which groups every zip listed in the checksum file into a single attestationgh attestation verifyin README.md and README_ja.md/en/to/ja/(separate commit)Verification
Notes
Provenance only proves that the upstream CI produced the artifact. If the release workflow itself or one of its build dependencies is compromised, a tainted artifact still gets a valid signature. Blocking direct injection into release assets is still worth having.
This stays a manual step for Homebrew users. Homebrew's attestation support is limited to bottles and the signing repository is hardcoded to
Homebrew/homebrew-core, so a third-party tap never reaches that code path.