Skip to content

Commit e51c2df

Browse files
committed
Only upload sigstore signatures to the sigstore tag schema
... not to registries with X-R-S-S (that would immediately fail, when uploading to such a registry, with no opt-out), and not for lookaside (that would _work_ if users set up lookaside). Signed-off-by: Miloslav Trmač <[email protected]>
1 parent 6781554 commit e51c2df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/docker_image_dest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,11 +615,11 @@ func (d *dockerImageDestination) PutSignaturesWithFormat(ctx context.Context, si
615615
}
616616
switch {
617617
case d.c.supportsSignatures:
618-
if err := d.putSignaturesToAPIExtension(ctx, signatures, *instanceDigest); err != nil {
618+
if err := d.putSignaturesToAPIExtension(ctx, otherSignatures, *instanceDigest); err != nil {
619619
return err
620620
}
621621
case d.c.signatureBase != nil:
622-
if err := d.putSignaturesToLookaside(signatures, *instanceDigest); err != nil {
622+
if err := d.putSignaturesToLookaside(otherSignatures, *instanceDigest); err != nil {
623623
return err
624624
}
625625
default:

0 commit comments

Comments
 (0)