Skip to content

Commit 43b734b

Browse files
committed
chore(ci): unset cred helper
1 parent 800d8bb commit 43b734b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,20 @@ jobs:
104104
105105
- name: Set git remote to use App token
106106
run: git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
107-
107+
108108
- name: Test App token git push
109109
env:
110110
RELEASE_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
111111
run: |
112112
git checkout --orphan test-token-push
113113
git commit --allow-empty -m "chore(repo): test push"
114-
git remote set-url origin https://x-access-token:${RELEASE_GITHUB_TOKEN}@github.com/supabase/supabase-js.git
114+
# Unset credential helper so git does NOT use GITHUB_TOKEN
115115
git config --global --unset credential.helper || true
116+
git config --unset credential.helper || true
117+
# Set remote to use the GitHub App token
118+
git remote set-url origin https://x-access-token:${RELEASE_GITHUB_TOKEN}@github.com/supabase/supabase-js.git
119+
# Optionally: show remote for debug (token will be masked in logs)
120+
git remote -v
116121
git push origin test-token-push
117122
118123
- name: Release

0 commit comments

Comments
 (0)