Customers ask for proof that the binary you ship was built from your repository by your pipeline.
AdvancedScenarioSecrets, Signing and Security
Answer
Situation read → They want build provenance, not just a checksum.
What I'd do →
- Generate SLSA-style provenance with GitHub artifact attestations:
permissions:
id-token: write
attestations: write
contents: read
steps:
- uses: actions/attest-build-provenance@v2
with:
subject-path: dist/app.tar.gz
- Customers verify:
gh attestation verify dist/app.tar.gz --repo ORG/app. - Publish an SBOM alongside the release.
- Sign container images with cosign if you ship images.
Why → The attestation ties the artifact to the repo, commit and workflow that built it.
Interview tip → Mention SLSA levels and that hosted runners help meet them.
More on Secrets, Signing and Security
A developer pushed an AWS access key to a public repo 10 minutes ago. What is your first move?BeginnerAfter rotating the leaked key, you must purge it from repository history. How?AdvancedA push is rejected: "GH013: Repository rule violations found ... Push cannot contain secrets". What do you do?IntermediateSecret scanning alerts have piled up, and many look like false positives or old test credentials.IntermediateYou must set up signed commits on your laptop. Which method do you pick?BeginnerYour GPG signing key expires next week. What is the correct way to handle it?Intermediate