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:
104
104
105
105
- name : Set git remote to use App token
106
106
run : git remote set-url origin https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/supabase/supabase-js.git
107
-
107
+
108
108
- name : Test App token git push
109
109
env :
110
110
RELEASE_GITHUB_TOKEN : ${{ steps.app-token.outputs.token }}
111
111
run : |
112
112
git checkout --orphan test-token-push
113
113
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
115
115
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
116
121
git push origin test-token-push
117
122
118
123
- name : Release
You can’t perform that action at this time.
0 commit comments