We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30534e commit 4c2d2fbCopy full SHA for 4c2d2fb
scripts/seed-repos.sh
@@ -6,7 +6,8 @@ base_dir="$2"
6
auth_header=""
7
8
if [ -n "${GITHUB_TOKEN:-}" ]; then
9
- auth_header="Authorization: Bearer ${GITHUB_TOKEN}"
+ basic_auth="$(printf 'x-access-token:%s' "$GITHUB_TOKEN" | base64 | tr -d '\n')"
10
+ auth_header="Authorization: Basic ${basic_auth}"
11
fi
12
13
if [ ! -f "$list_file" ]; then
0 commit comments