diff --git a/src/snapshot.ts b/src/snapshot.ts index 3630d5e..9c44ab1 100644 --- a/src/snapshot.ts +++ b/src/snapshot.ts @@ -145,9 +145,7 @@ export async function submitSnapshot( const repo = context.repo const githubToken = core.getInput('token') || (await core.getIDToken()) - const octokit = new Octokit({ - auth: githubToken - }) + const octokit = github.getOctokit(githubToken) try { const response = await octokit.request(