Skip to content

Commit 73ab788

Browse files
author
Federico Builes
authored
Merge pull request #32 from github/aibaars/get-use-octokit
Use github.getOctokit
2 parents a618473 + f826bc9 commit 73ab788

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/snapshot.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,7 @@ export async function submitSnapshot(
145145

146146
const repo = context.repo
147147
const githubToken = core.getInput('token') || (await core.getIDToken())
148-
const octokit = new Octokit({
149-
auth: githubToken
150-
})
148+
const octokit = github.getOctokit(githubToken)
151149

152150
try {
153151
const response = await octokit.request(

0 commit comments

Comments
 (0)