Skip to content

Commit e6a5db3

Browse files
authored
allowing use of fine-grained tokens (#1315)
1 parent 2b617be commit e6a5db3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wizard/github.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const _github_auth = Ref{GitHub.Authorization}()
66

77
function github_auth(;allow_anonymous::Bool=true)
88

9-
if (!isassigned(_github_auth) || !allow_anonymous && isa(_github_auth[], GitHub.AnonymousAuth)) && length(get(ENV, "GITHUB_TOKEN", "")) == 40
9+
if (!isassigned(_github_auth) || !allow_anonymous && isa(_github_auth[], GitHub.AnonymousAuth)) && length(get(ENV, "GITHUB_TOKEN", "")) >= 40
1010
try
1111
_github_auth[] = GitHub.authenticate(ENV["GITHUB_TOKEN"])
1212
catch e

0 commit comments

Comments
 (0)