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:
Miloslav Trmač 2025-02-13 03:56:45 +01:00
parent 6cbf339124
commit bac171e236
1 changed files with 2 additions and 2 deletions

View File

@ -615,11 +615,11 @@ func (d *dockerImageDestination) PutSignaturesWithFormat(ctx context.Context, si
}
switch {
case d.c.supportsSignatures:
if err := d.putSignaturesToAPIExtension(ctx, signatures, *instanceDigest); err != nil {
if err := d.putSignaturesToAPIExtension(ctx, otherSignatures, *instanceDigest); err != nil {
return err
}
case d.c.signatureBase != nil:
if err := d.putSignaturesToLookaside(signatures, *instanceDigest); err != nil {
if err := d.putSignaturesToLookaside(otherSignatures, *instanceDigest); err != nil {
return err
}
default: