mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-25 08:54:43 +00:00
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:
5
.github/workflows/docs.yml
vendored
5
.github/workflows/docs.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user