Skip to content

Commit 12fb25f

Browse files
committed
removing verifyImageSignatures method
Signed-off-by: Soule BA <[email protected]>
1 parent 7f3df76 commit 12fb25f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

internal/oci/cosign/cosign.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
coptions "github.com/sigstore/cosign/v2/cmd/cosign/cli/options"
2828
"github.com/sigstore/cosign/v2/cmd/cosign/cli/rekor"
2929
"github.com/sigstore/cosign/v2/pkg/cosign"
30-
"github.com/sigstore/cosign/v2/pkg/oci"
3130
ociremote "github.com/sigstore/cosign/v2/pkg/oci/remote"
3231
"github.com/sigstore/sigstore/pkg/cryptoutils"
3332
"github.com/sigstore/sigstore/pkg/signature"
@@ -146,16 +145,11 @@ func NewCosignVerifier(ctx context.Context, opts ...Options) (*CosignVerifier, e
146145
}, nil
147146
}
148147

149-
// verifyImageSignatures verify the authenticity of the given ref OCI image.
150-
func (v *CosignVerifier) verifyImageSignatures(ctx context.Context, ref name.Reference) ([]oci.Signature, bool, error) {
151-
return cosign.VerifyImageSignatures(ctx, ref, v.opts)
152-
}
153-
154148
// Verify verifies the authenticity of the given ref OCI image.
155149
// It returns a boolean indicating if the verification was successful.
156150
// It returns an error if the verification fails, nil otherwise.
157151
func (v *CosignVerifier) Verify(ctx context.Context, ref name.Reference) (soci.VerificationResult, error) {
158-
signatures, _, err := v.verifyImageSignatures(ctx, ref)
152+
signatures, _, err := cosign.VerifyImageSignatures(ctx, ref, v.opts)
159153
if err != nil {
160154
return soci.VerificationResultFailed, err
161155
}

0 commit comments

Comments
 (0)