add other token type
All checks were successful
Self Test / test (push) Successful in 8s

This commit is contained in:
Alessio 2025-05-31 21:55:28 -04:00
parent 45a6858b7b
commit a53aa3d819

View File

@ -16,10 +16,12 @@ runs:
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
echo "github-token: ${{ inputs.github-token }}"
echo "token: ${token}"
basicauth=$(echo -n "x-access-token:${token}" | base64)
echo "token2: ${token}"
basicauth=$(echo -n "x-access-token:${{ inputs.github-token }}" | base64)
git config --local http.$GITHUB_SERVER_URL.extraheader "AUTHORIZATION: basic ${basicauth}"
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git fetch origin "$GITHUB_REF"
git checkout "$GITHUB_REF_NAME"
shell: bash
env:
token: ${{ secrets.GITHUB_TOKEN }}
token2: ${{ github.token }}