diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4a76a57..8b5e8fd 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -53,8 +53,9 @@ jobs: - name: Set up git credentials for gh-pages push run: | cd ${{ env.collection_dir }} - git config credential.helper \ - '!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f' + BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) + git config --local http.https://github.com/.extraheader \ + "AUTHORIZATION: basic ${BASIC_AUTH}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 827e578..5be1577 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,8 +60,9 @@ jobs: - name: Set up git credentials run: | - git config credential.helper \ - '!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f' + BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) + git config --local http.https://github.com/.extraheader \ + "AUTHORIZATION: basic ${BASIC_AUTH}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}