Skip to content

Commit fefc52c

Browse files
committed
fix: configure git authentication in release workflow
- Add explicit repository setting to checkout action - Configure git to use PAT token for HTTPS GitHub operations - Set git user name and email for subsequent git operations - Fixes authentication errors during repository checkout
1 parent cabb0ab commit fefc52c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ jobs:
2727
# Fetch full history of the current ref so git operations behave like locally
2828
fetch-depth: 0
2929
token: ${{ secrets.PAT_TOKEN }}
30+
# Explicitly set repository to ensure proper authentication
31+
repository: ${{ github.repository }}
32+
33+
- name: Configure Git for authentication
34+
run: |
35+
git config --global url."https://${{ secrets.PAT_TOKEN }}@github.com/".insteadOf "https://github.com/"
36+
git config --global user.name "github-actions[bot]"
37+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3038
3139
- name: Ensure main branch is available
3240
run: git fetch origin main

0 commit comments

Comments
 (0)