File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments