fix(ci): add SLSA provenance to release artifacts#243
Merged
Conversation
The OpenSSF Scorecard Signed-Releases check awards 8/10 for sigstore signatures (.sigstore.json) but requires .intoto.jsonl provenance files for 10/10. Add the slsa-framework/slsa-github-generator generic workflow to generate SLSA v1.0 provenance and upload it to each GitHub Release. The existing actions/attest-build-provenance steps are kept for GitHub Artifact Attestations (gh attestation verify). The new SLSA generator adds .intoto.jsonl files that the Scorecard recognizes as provenance. Signed-off-by: Rhuan Barreto <rhuan.barreto@gmail.com>
Deploying archgate-cli with
|
| Latest commit: |
b32e865
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5430b6ad.archgate-cli.pages.dev |
| Branch Preview URL: | https://fix-slsa-provenance.archgate-cli.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
slsa-framework/slsa-github-generatorgeneric workflow torelease-binaries.ymlcombine-hashesjob merges them; theprovenancejob calls the SLSA reusable workflow which generates.intoto.jsonland uploads it to the GitHub Releaseactions/attest-build-provenancesteps are kept — they feed GitHub's Artifact Attestations API (gh attestation verify), while the new.intoto.jsonlfiles satisfy the OpenSSF Scorecard's Signed-Releases provenance tier (10/10 vs current 8/10)Context
OpenSSF Scorecard currently gives 8/10 on Signed-Releases: all 5 latest releases have
.sigstore.jsonsignatures, but none have.intoto.jsonlSLSA provenance files. The Scorecard awards 10/10 only when.intoto.jsonlis present. Since the Scorecard checks the last 5 releases, the score will ramp up gradually with each new release.Test plan
release-binariesworkflow completes all 3 build jobs +combine-hashes+provenancemultiple.intoto.jsonlfile alongside the existing.sigstore.jsonbundlesslsa-verifier verify-artifact --provenance-path multiple.intoto.jsonl --source-uri github.com/archgate/cli <artifact>