fleetlint Policy for a fleet of repositories
v0.11 (latest)
Getting started

release/signing/image

Release artifacts are signed

Implements release/signing for the image artifact: it runs when the release publishes one (see artifacts).

Severityerror
Tiers1
Artifactimage
Scoperoot
Kindoutcome
Sourcelibrary v0.8.0
Selected byfleetlint-recommended@v0.8.0

Requirement

The workflow that pushes the image signs it by digest (cosign sign <image>@<digest>, the digest from the build step’s output), with GoReleaser docker_signs:, or with Notation. Signing by tag is a partial: a tag can be moved after signing.

Why

Checksums prove integrity; only a signature proves who built it.

Capability applies when

release.exists || repo.artifacts.size() > 0

Fix

After the push step run cosign sign --yes ${IMAGE}@${{ steps.build.outputs.digest }} with id-token: write on the job (keyless) or --key on Gitea.

Agent instruction: Add sigstore/cosign-installer and, after the build-push step with an id, cosign sign --yes <registry>/<image>@${{ steps.<id>.outputs.digest }}; grant id-token: write and packages: write to that job only.

A finding that names no file points at the first workflow that publishes the artifact, or .github/workflows/release.yml when there is none.

Sources


Generated by fleetlint docs from catalog v0.8.0.