Skip to content

Commit 7460ed7

Browse files
committed
fix(ci): scope git credentials to --local instead of --global
1 parent 1936b52 commit 7460ed7

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959

6060
- name: Configure git
6161
run: |
62-
git config --global user.name "github-actions[bot]"
63-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
62+
git config --local user.name "github-actions[bot]"
63+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
6464
6565
- name: Install dependencies
6666
run: npm ci
@@ -122,7 +122,7 @@ jobs:
122122
env:
123123
GH_TOKEN: ${{ github.token }}
124124
run: |
125-
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
125+
git config --local url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
126126
127127
- name: Create release branch and PR
128128
env:
@@ -240,8 +240,8 @@ jobs:
240240

241241
- name: Configure git for tests
242242
run: |
243-
git config --global user.name "github-actions[bot]"
244-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
243+
git config --local user.name "github-actions[bot]"
244+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
245245
246246
- name: Install uv for Python tests
247247
run: curl -LsSf https://astral.sh/uv/install.sh | sh
@@ -382,14 +382,14 @@ jobs:
382382
env:
383383
GH_TOKEN: ${{ github.token }}
384384
run: |
385-
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
385+
git config --local url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "https://github.com/"
386386
387387
- name: Create and push tag
388388
env:
389389
VERSION: ${{ steps.version.outputs.version }}
390390
run: |
391-
git config --global user.name "github-actions[bot]"
392-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
391+
git config --local user.name "github-actions[bot]"
392+
git config --local user.email "github-actions[bot]@users.noreply.github.com"
393393
git tag -a "v$VERSION" -m "Release v$VERSION"
394394
git push origin "v$VERSION"
395395

0 commit comments

Comments
 (0)