Skip to content

Commit 4c2d2fb

Browse files
committed
use basic auth for github app git
1 parent f30534e commit 4c2d2fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/seed-repos.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ base_dir="$2"
66
auth_header=""
77

88
if [ -n "${GITHUB_TOKEN:-}" ]; then
9-
auth_header="Authorization: Bearer ${GITHUB_TOKEN}"
9+
basic_auth="$(printf 'x-access-token:%s' "$GITHUB_TOKEN" | base64 | tr -d '\n')"
10+
auth_header="Authorization: Basic ${basic_auth}"
1011
fi
1112

1213
if [ ! -f "$list_file" ]; then

0 commit comments

Comments
 (0)