A release must be signed and have provenance so consumers can verify it.
AdvancedScenarioGitHub Actions
Answer
Situation read → Supply-chain attestation in Actions.
What I'd do →
- Set
permissions: { id-token: write, attestations: write, contents: read }. - Build image/binary, then use
actions/attest-build-provenance@v2withsubject-nameandsubject-digest(orcosign sign --yeskeyless using the OIDC token). - Consumers verify with
gh attestation verifyorcosign verify --certificate-identity ... --certificate-oidc-issuer https://token.actions.githubusercontent.com.
Why → Keyless signing ties the artifact to the workflow identity that built it.
Interview tip → Say "identity-based verification" rather than "we sign with a key".
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate