Skip to content

chore: enable OCI artifact type for attestation manifests - #437

Merged
mnencia merged 1 commit into
mainfrom
dev/436
May 15, 2026
Merged

mnencia merged 1 commit into
mainfrom
dev/436

Conversation

@gbartolini

Copy link
Copy Markdown
Contributor

BuildKit's default image exporter does not set artifactType or the OCI 1.1 Referrers subject backlink on attestation manifests. Setting oci-artifact=true on the image exporter adds both, so SBOM and provenance attestations become discoverable through the OCI Referrers API.

oci-mediatypes=true is redundant (BuildKit already defaults it to true when pushing to a registry, which is why the top-level index is already application/vnd.oci.image.index.v1+json) but kept for clarity.

Same fix as cloudnative-pg/cloudnative-pg#10601, mirroring cloudnative-pg/postgres-extensions-containers#198.

Closes #436

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 6, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 15, 2026
BuildKit's default image exporter does not set `artifactType` or the OCI
1.1 Referrers `subject` backlink on attestation manifests. Setting
`oci-artifact=true` on the image exporter adds both, so SBOM and
provenance attestations become discoverable through the OCI Referrers API.

`oci-mediatypes=true` is redundant (BuildKit already defaults it to true
when pushing to a registry, which is why the top-level index is already
`application/vnd.oci.image.index.v1+json`) but kept for clarity.

Same fix as cloudnative-pg/cloudnative-pg#10601, mirroring
cloudnative-pg/postgres-extensions-containers#198.

Closes #436

Signed-off-by: Gabriele Bartolini <[email protected]>
@mnencia
mnencia merged commit 220f3b5 into main May 15, 2026
64 checks passed
@mnencia
mnencia deleted the dev/436 branch May 15, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker-bake.hcl: emit attestation manifests as OCI artifacts (set oci-artifact=true)

3 participants