Skip to content

Commit 79b6474

Browse files
committed
imagetools: add sigstore bundle v3 to supported referrer formats
This was added after the initial version was written. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent e13cd5c commit 79b6474

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

commands/imagetools/create.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ func runCreate(ctx context.Context, dockerCli command.Cli, in createOptions, arg
171171
ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.oci.empty.v1+json", "empty")
172172
ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.dev.cosign.artifact.sig.v1+json", "cosign")
173173
ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.dev.cosign.simplesigning.v1+json", "simplesigning")
174+
ctx = remotes.WithMediaTypeKeyPrefix(ctx, "application/vnd.dev.sigstore.bundle.v0.3+json", "sigstore-bundle")
174175

175176
dt, desc, manifests, err := r.Combine(ctx, srcs, annotations, in.preferIndex, platforms)
176177
if err != nil {

util/imagetools/create.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ import (
2727
const (
2828
artifactTypeAttestationManifest = "application/vnd.docker.attestation.manifest.v1+json"
2929
artifactTypeCosignSignature = "application/vnd.dev.cosign.artifact.sig.v1+json"
30+
artifactTypeSigstoreBundle = "application/vnd.dev.sigstore.bundle.v0.3+json"
3031
)
3132

3233
var supportedArtifactTypes = map[string]struct{}{
3334
artifactTypeAttestationManifest: {},
3435
artifactTypeCosignSignature: {},
36+
artifactTypeSigstoreBundle: {},
3537
}
3638

3739
type Source struct {

0 commit comments

Comments
 (0)