We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0333a commit a791cbcCopy full SHA for a791cbc
gen_resources/generator/github.jl
@@ -10,7 +10,7 @@ const _github_auth = Ref{GitHub.Authorization}()
10
function github_auth(;allow_anonymous::Bool=true)
11
if !isassigned(_github_auth) || !allow_anonymous && isa(_github_auth[], GitHub.AnonymousAuth)
12
# If the user is feeding us a GITHUB_TOKEN token, use it!
13
- if length(get(ENV, "GITHUB_TOKEN", "")) == 40
+ if length(get(ENV, "GITHUB_TOKEN", "")) >= 40
14
_github_auth[] = GitHub.authenticate(ENV["GITHUB_TOKEN"])
15
else
16
if allow_anonymous
0 commit comments