From 04ae38ba967cb559c3b37c0ee6ab206354922028 Mon Sep 17 00:00:00 2001 From: Felix Matouschek Date: Wed, 8 Jul 2026 16:10:22 +0200 Subject: [PATCH] fix(ci): use global git config for http.extraheader The docs workflow copies the checkout to a work directory before the credential setup step runs. The action then operates on the copy, so --local config on the original checkout is not visible. Switch to --global so credentials apply to all git operations on the runner. Co-Authored-By: Claude Opus 4.6 Signed-off-by: Felix Matouschek --- .github/workflows/docs.yml | 3 +-- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8b5e8fd..cf3861f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,9 +52,8 @@ jobs: - name: Set up git credentials for gh-pages push run: | - cd ${{ env.collection_dir }} 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}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5be1577..7b94752 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: - name: Set up git credentials run: | 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}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}