Sub topic 12
What provenance does and does not prove
This chapter assumes you can read a GitHub Actions workflow, have run gh attestation verify, and know what a digest and a signature are. It covers what a passing verification tells you, what it leaves open, and how to state that to your consumers.
What a passing verification proves
When gh attestation verify succeeds, three facts hold:
- The attestation's signature is valid, and the signing certificate was issued by Sigstore's Fulcio to a specific GitHub Actions workflow identity.
- The attestation's subject digest matches the SHA-256 digest of the file or image you checked.
- The attestation's predicate records a repository, a commit, and a workflow ref for that build.
Together these say that a particular workflow run, in a particular repository, produced bytes with this digest. They link the artifact back to a source revision and a build definition. That is the whole claim.
What it does not prove
Provenance is evidence about origin. It says nothing about quality or safety.
| Question | Does provenance answer it? |
|---|---|
| Which repository and workflow built this file? | Yes |
| Was it built from commit X? | Yes, as recorded by the workflow run |
| Is the source code free of vulnerabilities or backdoors? | No |
| Is the maintainer trustworthy? | No |
| Are the dependencies safe? | No |
| Was the commit reviewed by a second person? | No, unless you enforce that separately |
| Has the artifact been scanned or tested? | No |
A malicious change merged into main and built by your normal workflow gets a valid attestation. The attestation is accurate: that workflow did build those bytes. The problem is upstream of what it measures.
Failure modes to plan for
A compromised workflow still signs
Sigstore signs whatever the workflow tells it to. If an attacker can edit the workflow file, push to a release branch, or inject a step through a vulnerable action, the output is signed with a valid identity. Branch protection, required reviews, pinned action versions, and least-privilege permissions reduce this risk. Provenance does not remove it.
Verifying too loosely
gh attestation verify dist/app --owner OWNER accepts any attested build from any repository in that owner. A repository an attacker controls inside the organization would pass. Narrow the check:
gh attestation verify dist/app \
--repo OWNER/REPO \
--signer-workflow OWNER/REPO/.github/workflows/build.ymlWithout --signer-workflow, any workflow in the repository that creates an attestation can satisfy the check, including a test workflow that nobody meant to be a release path.
Missing attestation versus bad attestation
A failed verification can mean the artifact is not from your pipeline, or only that no one attested it. Treat both as "do not trust." Do not treat the absence of an attestation as a neutral result.
Build Level 2 is not Level 3
With a plain actions/attest-build-provenance step in your own workflow, you reach SLSA Build Level 2. The signed provenance exists, but the build steps run in the same job that holds the signing permission. A step that is compromised could influence what gets attested. Level 3 needs stronger isolation, which a reusable workflow provides. The consumer must then pin the signer workflow to confirm the isolation was used.
Time and revocation
Fulcio certificates last only minutes. Verification relies on the transparency log timestamp to show the signature was made while the certificate was valid. Provenance does not tell you whether the artifact is still safe today. A build can be attested and later found to contain a vulnerable dependency.
A realistic threat model
The diagram below sorts common supply chain attacks by whether provenance helps.
Provenance protects the path between the build and the consumer. Source review, dependency scanning, and tests protect the content.
Stating the guarantee
When you publish artifacts, tell consumers what they can check and how. A useful policy statement has three parts:
- The repository and workflow that sign releases.
- The command that verifies them, with
--repoand--signer-workflowset. - What you do not claim, such as code review or vulnerability scanning.
Exercise
A consumer runs gh attestation verify app --owner acme and it passes. Name two things this does not establish, and one flag change that tightens the check.
Show answer
It does not establish that the source code is free of malicious changes, and it does not establish that the build came from the intended repository or workflow, since any attested build under the acme owner passes. Tightening: use --repo acme/app and add --signer-workflow acme/app/.github/workflows/build.yml.