Merge pull request #255 from 0xFelix/fix-checkout-v7-credentials

fix(ci): use http.extraheader for checkout v7 credential compatibility
This commit is contained in:
kubevirt-prow[bot]
2026-07-07 13:17:36 +00:00
committed by GitHub
2 changed files with 6 additions and 4 deletions

View File

@@ -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 }}

View File

@@ -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 }}