Files
cozystack/hack
Marian Koreniuk 662fcf83de feat(build): attach a provenance attestation beside the SBOM
An image built with SBOM=1 says what is in it and nothing about how it
was built: BUILDX_ARGS set --provenance=false for every build, from when
any attestation broke the single-platform stitch.

SBOM=1 now also passes --attest type=provenance,mode=min, which BuildKit
writes into the same attestation manifest as the SBOM, so the index
shape the stitch and the gate read since #4997 is unchanged and a
signature over the index covers it. mode=min records the build times,
the platform, the frontend and the BuildKit version and leaves out build
arguments and secrets, which is what lets it ride every release image.
A build without SBOM=1 keeps --provenance=false: the default docker
driver cannot attach it, and a PR image turned into an index would buy
nothing.

Refs #3278

Assisted-by: LLM
Signed-off-by: Marian Koreniuk <moriarti@cp.if.ua>
2026-11-02 06:49:13 +01:00
..