mirror of https://github.com/containers/image.git
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č <mitr@redhat.com>
This commit is contained in:
parent
6cbf339124
commit
bac171e236
|
|
@ -615,11 +615,11 @@ func (d *dockerImageDestination) PutSignaturesWithFormat(ctx context.Context, si
|
||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
case d.c.supportsSignatures:
|
case d.c.supportsSignatures:
|
||||||
if err := d.putSignaturesToAPIExtension(ctx, signatures, *instanceDigest); err != nil {
|
if err := d.putSignaturesToAPIExtension(ctx, otherSignatures, *instanceDigest); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
case d.c.signatureBase != nil:
|
case d.c.signatureBase != nil:
|
||||||
if err := d.putSignaturesToLookaside(signatures, *instanceDigest); err != nil {
|
if err := d.putSignaturesToLookaside(otherSignatures, *instanceDigest); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue