From 2ce668fbba60c86a6e535576d1d8ff792c523333 Mon Sep 17 00:00:00 2001 From: Juncheng Zhu <74894646+junczhu@users.noreply.github.com> Date: Fri, 2 Aug 2024 11:50:28 +0800 Subject: [PATCH] fix: fix typo in notation verifier (#1678) --- pkg/verifier/notation/notation.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/verifier/notation/notation.go b/pkg/verifier/notation/notation.go index 30648e474a..6fb0ccf0f6 100644 --- a/pkg/verifier/notation/notation.go +++ b/pkg/verifier/notation/notation.go @@ -46,10 +46,10 @@ import ( ) const ( - verifierType = "notation" - defaultCertPath = "ratify-certs/notation/truststore" - trustStoreTypeCA = string(truststore.TypeCA) - trustStoreTypeypeSigningAuthority = string(truststore.TypeSigningAuthority) + verifierType = "notation" + defaultCertPath = "ratify-certs/notation/truststore" + trustStoreTypeCA = string(truststore.TypeCA) + trustStoreTypeSigningAuthority = string(truststore.TypeSigningAuthority) ) // NotationPluginVerifierConfig describes the configuration of notation verifier @@ -233,7 +233,7 @@ func (v *notationPluginVerifier) GetNestedReferences() []string { func normalizeVerificationCertsStores(conf *NotationPluginVerifierConfig) error { isCertStoresByType, isLegacyCertStore := false, false for key := range conf.VerificationCertStores { - if key != trustStoreTypeCA && key != trustStoreTypeypeSigningAuthority { + if key != trustStoreTypeCA && key != trustStoreTypeSigningAuthority { isLegacyCertStore = true logger.GetLogger(context.Background(), logOpt).Debugf("Get VerificationCertStores in legacy format") } else {