Language: Go
Label: vulnerable
CWE: NVD-CWE-noinfo \u2014 

Code:
func (iv *ImageVerifier) buildNotaryV2Verifier(
	attestor kyvernov1.Attestor,
	imageVerify kyvernov1.ImageVerification,
	image string,
) (images.ImageVerifier, *images.Options, string) {
	path := ""
	opts := &images.Options{
		ImageRef:       image,
		Cert:           attestor.Certificates.Certificate,
		CertChain:      attestor.Certificates.CertificateChain,
		RegistryClient: iv.rclient,
	}

	return notaryv2.NewVerifier(), opts, path
}