mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-30 03:14:34 +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
|
- name: Set up git credentials for gh-pages push
|
||||||
run: |
|
run: |
|
||||||
cd ${{ env.collection_dir }}
|
cd ${{ env.collection_dir }}
|
||||||
git config credential.helper \
|
BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
|
||||||
'!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f'
|
git config --local http.https://github.com/.extraheader \
|
||||||
|
"AUTHORIZATION: basic ${BASIC_AUTH}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
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
|
- name: Set up git credentials
|
||||||
run: |
|
run: |
|
||||||
git config credential.helper \
|
BASIC_AUTH=$(echo -n "x-access-token:${GITHUB_TOKEN}" | base64)
|
||||||
'!f() { echo "username=x-access-token"; echo "password=${GITHUB_TOKEN}"; }; f'
|
git config --local http.https://github.com/.extraheader \
|
||||||
|
"AUTHORIZATION: basic ${BASIC_AUTH}"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user