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

fix(ci): use global git config for http.extraheader
This commit is contained in:
kubevirt-prow[bot]
2026-07-14 13:58:35 +00:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -52,9 +52,8 @@ jobs:
- name: Set up git credentials for gh-pages push - name: Set up git credentials for gh-pages push
run: | run: |
cd ${{ env.collection_dir }}
BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
git config --local http.https://github.com/.extraheader \ git config --global http.https://github.com/.extraheader \
"AUTHORIZATION: basic ${BASIC_AUTH}" "AUTHORIZATION: basic ${BASIC_AUTH}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -61,7 +61,7 @@ jobs:
- name: Set up git credentials - name: Set up git credentials
run: | run: |
BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64) BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
git config --local http.https://github.com/.extraheader \ git config --global http.https://github.com/.extraheader \
"AUTHORIZATION: basic ${BASIC_AUTH}" "AUTHORIZATION: basic ${BASIC_AUTH}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}