Skip to content

Commit

Permalink
Merge pull request #32 from github/aibaars/get-use-octokit
Browse files Browse the repository at this point in the history
Use github.getOctokit
  • Loading branch information
febuiles authored Oct 26, 2022
2 parents a618473 + f826bc9 commit 73ab788
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 73ab788

Please sign in to comment.