Skip to content

Commit 9e41771

Browse files
committed
chore: change auth
1 parent a7ca6f2 commit 9e41771

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/external-test.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -101,30 +101,12 @@ jobs:
101101
102102
- name: Generate GitHub App token
103103
id: generate-token
104-
uses: actions/github-script@v7
104+
uses: actions/create-github-app-token@v1
105105
with:
106-
script: |
107-
const { createAppAuth } = require('@octokit/auth-app');
108-
109-
const appId = '${{ secrets.CROSS_REPO_APP_ID }}';
110-
const privateKey = `${{ secrets.CROSS_REPO_APP_PRIVATE_KEY }}`;
111-
const installationId = '${{ secrets.CROSS_REPO_APP_INSTALLATION_ID }}';
112-
113-
// Create authenticated app instance
114-
const auth = createAppAuth({
115-
appId: appId,
116-
privateKey: privateKey,
117-
installationId: installationId,
118-
});
119-
120-
// Get installation access token
121-
const { token } = await auth({ type: 'installation' });
122-
123-
// Set the token as output
124-
core.setSecret(token);
125-
core.setOutput('token', token);
126-
127-
console.log('Successfully generated installation access token');
106+
app-id: ${{ secrets.CROSS_REPO_APP_ID }}
107+
private-key: ${{ secrets.CROSS_REPO_APP_PRIVATE_KEY }}
108+
owner: supabase
109+
repositories: realtime-js,supabase-js
128110

129111
- name: Stop Supabase
130112
if: always()

0 commit comments

Comments
 (0)