diff --git a/cmd/notation/registry.go b/cmd/notation/registry.go index eaea2a532..1ea9087d4 100644 --- a/cmd/notation/registry.go +++ b/cmd/notation/registry.go @@ -183,10 +183,10 @@ func getAuthClient(ctx context.Context, opts *SecureFlagOpts, ref registry.Refer cred := opts.Credential() if cred != auth.EmptyCredential { - // use specified credential + // use the specified credential authClient.Credential = auth.StaticCredential(ref.Host(), cred) } else { - // use saved credential + // use saved credentials credsStore, err := notationauth.NewCredentialsStore() if err != nil { return nil, false, fmt.Errorf("failed to get credentials store: %w", err)