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