Interview Prep/CI/CD/GitHub Actions

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 →

  1. Set permissions: { id-token: write, attestations: write, contents: read }.
  2. Build image/binary, then use actions/attest-build-provenance@v2 with subject-name and subject-digest (or cosign sign --yes keyless using the OIDC token).
  3. Consumers verify with gh attestation verify or cosign 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".

All CI/CD questions

More on GitHub Actions