Skip to content

Commit

Permalink
Switch to OCI media types.
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Lorenc <dlorenc@google.com>
  • Loading branch information
Dan Lorenc committed Mar 2, 2021
1 parent 9f4e8f7 commit 21d37f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cosign/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ func Upload(signature, payload []byte, dstTag name.Reference) error {
return err
}

img = mutate.MediaType(img, types.OCIManifestSchema1)

if err := remote.Write(dstTag, img, remote.WithAuthFromKeychain(authn.DefaultKeychain)); err != nil {
return err
}
Expand Down

0 comments on commit 21d37f6

Please sign in to comment.