File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,18 @@ if [[ $OSTYPE =~ darwin ]]; then
25
25
fi
26
26
# Allow binary caches for user
27
27
add_config " trusted-users = root ${USER:- } "
28
- # Add github access token
28
+ # Add a GitHub access token.
29
+ # Token-less access is subject to lower rate limits.
29
30
if [[ -n " ${INPUT_GITHUB_ACCESS_TOKEN:- } " ]]; then
31
+ echo " ::debug::Using the provided github_access_token for github.com"
30
32
add_config " access-tokens = github.com=$INPUT_GITHUB_ACCESS_TOKEN "
31
- elif [[ -n " ${GITHUB_TOKEN:- } " ]]; then
33
+ # Use the default GitHub token if available.
34
+ # Skip this step if running an Enterprise instance. The default token there does not work for github.com.
35
+ elif [[ -n " ${GITHUB_TOKEN:- } " && $GITHUB_SERVER_URL == " https://github.com" ]]; then
36
+ echo " ::debug::Using the default GITHUB_TOKEN for github.com"
32
37
add_config " access-tokens = github.com=$GITHUB_TOKEN "
38
+ else
39
+ echo " ::debug::Continuing without a GitHub access token"
33
40
fi
34
41
# Append extra nix configuration if provided
35
42
if [[ -n " ${INPUT_EXTRA_NIX_CONFIG:- } " ]]; then
You can’t perform that action at this time.
0 commit comments