release/provenance/image
Releases attest build provenance
Implements release/provenance for the image artifact: it runs when the release publishes one (see artifacts).
| Severity | warning |
| Tiers | 1 |
| Artifact | image |
| Scope | root |
| Kind | outcome |
| Source | library v0.5.0 |
| Selected by | fleetlint-recommended@v0.5.0 |
Requirement
Provenance is attached to the image digest: BuildKit (docker/build-push-action v4 or newer with provenance not set to false, docker buildx build --provenance), cosign attest --type slsaprovenance, actions/attest-build-provenance with subject-digest and push-to-registry, or the SLSA container generator.
Why
Provenance ties the artifact to the exact source and workflow that built it, which a signature alone does not.
Capability applies when
release.exists || repo.artifacts.size() > 0Fix
Keep docker/build-push-action v4 or newer and do not set provenance: false; or run cosign attest --yes --type slsaprovenance --predicate provenance.json <image>@<digest>.
Agent instruction: Remove provenance: false from the docker/build-push-action step, or add actions/attest-build-provenance with subject-name, subject-digest from the build step and push-to-registry: true.
A finding of this rule points at the file artifact.workflows.size() > 0 ? artifact.workflows[0] : ".github/workflows/release.yml" yields.
Sources
- https://slsa.dev/spec/v1.0/provenance (standard)
- https://slsa.dev/spec/v1.0/levels (standard, Build L1: Provenance exists)
- https://csrc.nist.gov/pubs/sp/800/218/final (standard, PS.3.2: Collect, safeguard, maintain, and share provenance data for all components of each software release)
- https://fleetlint.org/baseline/#releases
- https://docs.docker.com/build/metadata/attestations/slsa-provenance/ (spec)
- https://docs.github.com/en/actions/security-for-github-actions/using-artifact-attestations/using-artifact-attestations-to-establish-provenance-for-builds (guidance, Generating build provenance for container images)
- https://docs.sigstore.dev/cosign/verifying/attestation/ (spec)
Generated by fleetlint docs from catalog v0.5.0.