Skip to content

Commit a05acfb

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 67693bb commit a05acfb

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
@@ -611,11 +611,11 @@ func (d *dockerImageDestination) PutSignaturesWithFormat(ctx context.Context, si
611611
}
612612
switch {
613613
case d.c.supportsSignatures:
614-
if err := d.putSignaturesToAPIExtension(ctx, signatures, *instanceDigest); err != nil {
614+
if err := d.putSignaturesToAPIExtension(ctx, otherSignatures, *instanceDigest); err != nil {
615615
return err
616616
}
617617
case d.c.signatureBase != nil:
618-
if err := d.putSignaturesToLookaside(signatures, *instanceDigest); err != nil {
618+
if err := d.putSignaturesToLookaside(otherSignatures, *instanceDigest); err != nil {
619619
return err
620620
}
621621
default:

0 commit comments

Comments
 (0)