Skip to content

Commit

Permalink
auto update
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-Shan committed Sep 2, 2023
1 parent c7ddec9 commit 5e61fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-update-codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
const appOctokit = new Octokit({ authStrategy: createAppAuth, auth: { appId: '${{ secrets.APP_ID }}', privateKey: `${{ secrets.APP_PRIVATE_KEY_53AIYSR }}` } });
const installation = await appOctokit.rest.apps.getOrgInstallation({ org: '${{ github.repository_owner }}' });
const { token } = await appOctokit.auth({ type: "installation", installationId: installation.data.id, });
const result = await appOctokit.rest.apps.createInstallationAccessToken({ installation_id: installation.data.id });
const token = result.data.token;
execSync(`echo "::add-mask::${token}"`);
writeFileSync(process.env.GITHUB_OUTPUT, `APP_TOKEN=${token}`, {flag: 'a'});
run: echo "$SCRIPT_CONTENT" >> generate-token.mjs
Expand Down

0 comments on commit 5e61fff

Please sign in to comment.