1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

fix signature ()

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
Jim Bugwadia 2021-11-19 00:12:12 -08:00 committed by GitHub
parent 189c6f8cda
commit 8a0d465d90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,6 @@ import (
"github.com/sigstore/cosign/pkg/oci" "github.com/sigstore/cosign/pkg/oci"
sigs "github.com/sigstore/cosign/pkg/signature" sigs "github.com/sigstore/cosign/pkg/signature"
"github.com/sigstore/sigstore/pkg/signature" "github.com/sigstore/sigstore/pkg/signature"
"github.com/sigstore/sigstore/pkg/signature/dsse"
"k8s.io/client-go/kubernetes" "k8s.io/client-go/kubernetes"
) )
@ -177,7 +176,7 @@ func FetchAttestations(imageRef string, key string, repository string, log logr.
cosignOpts := &cosign.CheckOpts{ cosignOpts := &cosign.CheckOpts{
ClaimVerifier: cosign.IntotoSubjectClaimVerifier, ClaimVerifier: cosign.IntotoSubjectClaimVerifier,
SigVerifier: dsse.WrapVerifier(pubKey), SigVerifier: pubKey,
RegistryClientOpts: opts, RegistryClientOpts: opts,
} }