Skip to content

Commit eb26003

Browse files
fix(verifier): was not handling nil auth options
Signed-off-by: Jason <[email protected]>
1 parent 0a2bb72 commit eb26003

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/oci/notation.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ func (v *NotaryVerifier) Verify(ctx context.Context, ref name.Reference) (bool,
143143
return oauth.EmptyCredential, nil
144144
}
145145

146-
var auth authn.Authenticator
146+
auth := authn.Anonymous
147+
147148
if v.auth != nil {
148149
auth = v.auth
149150
} else if v.keychain != nil {

0 commit comments

Comments
 (0)