Skip to content

Commit 8fcac54

Browse files
committed
chore: enable OCI artifact type for attestation manifests
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 #94 Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
1 parent c4b8af5 commit 8fcac54

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docker-bake.hcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ target "default" {
4444
PGBOUNCER_VERSION = "${pgBouncerVersion}"
4545
BASE = "${base}"
4646
}
47+
output = [
48+
"type=image,oci-mediatypes=true,oci-artifact=true",
49+
]
4750
attest = [
4851
"type=provenance,mode=max",
4952
"type=sbom"

0 commit comments

Comments
 (0)