Skip to content

Commit 1546855

Browse files
dblockclaude
andcommitted
Fix duplicate Authorization header in update_api workflow.
Replaced manual HTTP header configuration with direct remote URL authentication to avoid conflicts with headers set by actions/checkout. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent bbd6a2e commit 1546855

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/update_api.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ jobs:
7272
run: |
7373
git config --local user.name 'slack-ruby-ci-bot'
7474
git config --local user.email '[email protected]'
75-
git config --local --unset-all http.https://github.com/.extraheader || true
76-
AUTH=$(echo -n "x-access-token:${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}" | base64)
77-
echo "::add-mask::${AUTH}"
78-
git config --local http.https://github.com/.extraheader "AUTHORIZATION: basic ${AUTH}"
7975
git add CHANGELOG.md
8076
git commit --amend --no-edit
77+
git remote set-url origin https://x-access-token:${{ steps.github_app_token.outputs.token || secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
8178
git push origin automated-api-update -f

0 commit comments

Comments
 (0)