Interview Prep/Git & GitHub/Secrets, Signing and Security

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 →

  1. 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
  1. Customers verify: gh attestation verify dist/app.tar.gz --repo ORG/app.
  2. Publish an SBOM alongside the release.
  3. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Secrets, Signing and Security