Skip to content

Commit

Permalink
Use github.getOctokit
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars authored Oct 25, 2022
1 parent a618473 commit f826bc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f826bc9

Please sign in to comment.