From f826bc9ba512c56d7d9917037989adf36f2c2058 Mon Sep 17 00:00:00 2001 From: Arthur Baars Date: Tue, 25 Oct 2022 15:19:31 +0200 Subject: [PATCH] Use github.getOctokit --- src/snapshot.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(