Skip to content

Commit e238221

Browse files
Copilotdevakesu
andauthored
Fix duplicate Authorization header in auto-version-and-tag checkout (#361)
* Initial plan * fix: add persist-credentials: false to auto-version-and-tag checkout step Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> * fix: configure git auth with gh auth setup-git for persist-credentials: false Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com>
1 parent 773950d commit e238221

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ jobs:
267267
with:
268268
fetch-depth: 0
269269
token: ${{ steps.app-token.outputs.token }}
270+
persist-credentials: false
270271

271272
- name: Import GPG key
272273
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
@@ -409,6 +410,9 @@ jobs:
409410
run: |
410411
set -euo pipefail
411412
413+
# Configure git to use GitHub CLI authentication (needed because persist-credentials: false)
414+
gh auth setup-git
415+
412416
VERSION_TAG="v${{ steps.check.outputs.version }}"
413417
414418
# If changes were made, we need to fetch the merged PR

0 commit comments

Comments
 (0)