File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,7 +88,14 @@ if [ -z "${pkglatest}" ]; then
8888 exit $noinput
8989fi
9090
91- echo " header=\" Authorization: Bearer ${GITHUB_TOKEN} \" " > ~ /.curlrc
91+ if [[ " $GITHUB_TOKEN " == ..* ]]; then
92+ echo " TOKEN FORMAT: appears to be a JWT (app-level token)."
93+ else
94+ echo " TOKEN FORMAT: not a JWT (installation token or PAT)."
95+ fi
96+
97+
98+ echo " header=\" Authorization: token ${GITHUB_TOKEN} \" " > ~ /.curlrc
9299git config --global url." https://x-access-token:${GITHUB_TOKEN} @github.com/" .insteadOf " https://github.com/"
93100
94101export NAME
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ if [ -z "${pkglatest}" ]; then
5050 exit $noinput
5151fi
5252
53- echo " header=\" Authorization: Bearer ${GITHUB_TOKEN} \" " > ~ /.curlrc
53+ echo " header=\" Authorization: token ${GITHUB_TOKEN} \" " > ~ /.curlrc
5454git config --global url." https://x-access-token:${GITHUB_TOKEN} @github.com/" .insteadOf " https://github.com/"
5555
5656cp -R /buildfiles/META.json " ${builddir} "
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ if [ -z "${pkglatest}" ]; then
8181 exit $noinput
8282fi
8383
84- echo " header=\" Authorization: Bearer ${GITHUB_TOKEN} \" " > ~ /.curlrc
84+ echo " header=\" Authorization: token ${GITHUB_TOKEN} \" " > ~ /.curlrc
8585git config --global url." https://x-access-token:${GITHUB_TOKEN} @github.com/" .insteadOf " https://github.com/"
8686
8787name=$( determine_name)
You can’t perform that action at this time.
0 commit comments