Skip to content

Commit fe832be

Browse files
hubyrodclaude
andcommitted
Fix deploy auth: use HTTP header instead of URL credentials
Avoids URL-encoding issues when token/secret contain special characters. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb4d06e commit fe832be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
1818
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
1919
run: |
20-
git remote add clever "https://${CLEVER_TOKEN}:${CLEVER_SECRET}@push-n3-par-clevercloud-customers.services.clever-cloud.com/app_e18aa250-0ebc-4a2d-ba9f-1383450de63c.git"
21-
git push clever main:master --force
20+
CREDENTIALS=$(echo -n "${CLEVER_TOKEN}:${CLEVER_SECRET}" | base64)
21+
git -c http.extraHeader="Authorization: Basic ${CREDENTIALS}" push https://push-n3-par-clevercloud-customers.services.clever-cloud.com/app_e18aa250-0ebc-4a2d-ba9f-1383450de63c.git main:master --force

0 commit comments

Comments
 (0)