SLSA Framework Explained: Build Provenance and Supply Chain Levels
What SLSA (Supply-chain Levels for Software Artifacts) is, build track levels, provenance attestations, how to generate them in GitHub Actions and verify the...
Published December 4, 2026
Signing an artefact proves who signed it, not how it was built. SLSA (pronounced "salsa") is an OpenSSF framework that defines increasing levels of assurance about the build process itself: that an artefact was built from specific source, by a specific build platform, without tampering. Its central mechanism is provenance, a signed statement describing how an artefact was produced.
The concept
SLSA's build track defines levels. Build L1 means provenance exists, describing how the artefact was built. Build L2 requires the provenance to be generated and signed by a hosted build platform, so it cannot be forged by the developer. Build L3 adds hardened builds: isolation between builds and protection of signing material from the build steps themselves, making tampering by a compromised build step much harder.
Provenance follows the in-toto attestation format and records the source repository and commit, the build platform and workflow, build parameters and the output digests. Consumers verify it before deployment: does the artefact digest match, was it built from our repository and branch, by our trusted workflow? Tools like slsa-verifier, cosign and admission policies automate the check.
SLSA build track
| Level | Requirement | Protects against |
|---|---|---|
| Build L0 | No guarantees | - |
| Build L1 | Provenance exists | Mistakes; gives basic visibility |
| Build L2 | Signed provenance from hosted build platform | Tampering after the build, forged provenance |
| Build L3 | Hardened, isolated builds; protected signing keys | Tampering during the build by compromised steps |
Provenance flow
What provenance records
| Provenance field | Example |
|---|---|
| subject (artefact digest) | sha256:9f2c… api image |
| buildDefinition.externalParameters | workflow path, ref |
| resolvedDependencies | git repo + commit SHA |
| runDetails.builder.id | GitHub Actions hosted runner identity |
| metadata | invocation ID, timestamps |
Practical examples
Generate provenance in GitHub Actions
GitHub artefact attestations produce signed SLSA provenance.
permissions: { id-token: write, contents: read, attestations: write, packages: write }
steps:
- uses: actions/checkout@v4
- id: push
run: ./build-and-push.sh # outputs image digest
- uses: actions/attest-build-provenance@v2
with:
subject-name: ghcr.io/example/api
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: trueVerify an attestation with the GitHub CLI
Checks signature, repository and workflow.
gh attestation verify oci://ghcr.io/example/api@sha256:9f2c... --repo example/apiVerify with cosign
Constrain the expected signer identity.
cosign verify-attestation --type slsaprovenance \
--certificate-identity-regexp '^https://github.com/example/api/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
ghcr.io/example/api@sha256:9f2c...Common mistakes
- Generating provenance but never verifying it before deployment.
- Verifying signatures without constraining the expected repository and workflow.
- Self-hosted runners shared across untrusted projects while claiming higher levels.
- Treating SLSA as a one-time certification rather than continuous practice.
Key takeaways
- SLSA defines levels of build integrity assurance.
- Provenance records how, where and from what an artefact was built.
- Hosted build platforms can generate signed provenance (L2/L3).
- Verify provenance and identity before deploying.
FAQ
Is SLSA a certification?
No. It is a framework and set of requirements you can adopt and attest to; there is no central certifying body.
How does SLSA relate to SBOMs?
SBOMs say what is inside an artefact; SLSA provenance says how it was built. They complement each other.
What level should I aim for?
Build L2 is achievable for most teams using hosted CI attestations; L3 needs hardened builders.