ci: add GitHub Artifact Attestations (build provenance)#769
Open
anotherGoogleFan wants to merge 3 commits into
Open
ci: add GitHub Artifact Attestations (build provenance)#769anotherGoogleFan wants to merge 3 commits into
anotherGoogleFan wants to merge 3 commits into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
This PR integrates GitHub Artifact Attestations (build provenance) into the release workflows.
As a security-sensitive project, the trustworthiness of released artifacts is critical. Provenance attestation attaches a cryptographically signed, verifiable proof of origin to each build artifact. Verifiers can confirm that the APKs were built by this repository, from a specific workflow and commit, inside GitHub-hosted Actions runners — not manually replaced or produced by an unknown build environment.
The recent Linux xz backdoor incident is a textbook example: the source code was clean, but the distributed pre-compiled binaries were poisoned. This illustrates that the trust chain doesn't end at the source code — it extends all the way to the actual built, packaged, and distributed artifacts. Provenance provides exactly this kind of "origin verifiability", helping downstream users confirm that what they received came from the expected official build pipeline.
Changes
permissions: id-token: write, attestations: write, contents: writetoBuildReleaseandBuildPreReleasejobsactions/attest-build-provenance@v2step after each build step to generate signed attestations for all output APKsVerification
Once a release is built, anyone can verify an APK with: