Skip to content

Commit

Permalink
fix: fix typo in notation verifier (#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
junczhu authored Aug 2, 2024
1 parent b652e00 commit 05a8cbe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/verifier/notation/notation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 05a8cbe

Please sign in to comment.