mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-25 08:54:43 +00:00
Merge pull request #256 from 0xFelix/fix-checkout-v7-credentials
fix(ci): use global git config for http.extraheader
This commit is contained in:
3
.github/workflows/docs.yml
vendored
3
.github/workflows/docs.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user