Skip to content

Commit eececc2

Browse files
committed
enable OCI artifact for attestation manifest by default
Signed-off-by: CrazyMax <[email protected]>
1 parent e6d9fcd commit eececc2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Keys supported by image output:
284284
* `push-by-digest=true`: push unnamed image
285285
* `registry.insecure=true`: push to insecure HTTP registry
286286
* `oci-mediatypes=true`: use OCI mediatypes in configuration JSON instead of Docker's
287-
* `oci-artifact=false`: use OCI artifact format for attestations
287+
* `oci-artifact=true`: use OCI artifact format for attestations
288288
* `unpack=true`: unpack image after creation (for use with containerd)
289289
* `dangling-name-prefix=<value>`: name image with `prefix@<digest>`, used for anonymous images
290290
* `name-canonical=true`: add additional canonical name `name@<digest>`

exporter/containerimage/export.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ func (e *imageExporter) Resolve(ctx context.Context, id int, opt map[string]stri
7777
RefCfg: cacheconfig.RefConfig{
7878
Compression: compression.New(compression.Default),
7979
},
80+
OCIArtifact: true,
8081
ForceInlineAttestations: true,
8182
},
8283
store: true,

exporter/oci/export.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ func (e *imageExporter) Resolve(ctx context.Context, id int, opt map[string]stri
7070
RefCfg: cacheconfig.RefConfig{
7171
Compression: compression.New(compression.Default),
7272
},
73-
OCITypes: e.opt.Variant == VariantOCI,
73+
OCIArtifact: true,
74+
OCITypes: e.opt.Variant == VariantOCI,
7475
},
7576
}
7677

0 commit comments

Comments
 (0)