Skip to content

Commit b82f1b6

Browse files
author
Federico Builes
authored
Merge pull request #11 from kachick/fix-signature-of-using-getIDToken
Fix signature of using `core.getIDToken`
2 parents 51d738b + 907b4fd commit b82f1b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

example/action-dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ function submitSnapshot(snapshot, context = github.context) {
475475
core.notice('Submitting snapshot...');
476476
core.notice(snapshot.prettyJSON());
477477
const repo = context.repo;
478-
const githubToken = core.getInput('token') || core.getIDToken;
478+
const githubToken = core.getInput('token') || (yield core.getIDToken());
479479
const octokit = new rest_1.Octokit({
480480
auth: githubToken
481481
});

example/action-dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/snapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export async function submitSnapshot(
144144
core.notice(snapshot.prettyJSON())
145145

146146
const repo = context.repo
147-
const githubToken = core.getInput('token') || core.getIDToken
147+
const githubToken = core.getInput('token') || (await core.getIDToken())
148148
const octokit = new Octokit({
149149
auth: githubToken
150150
})

0 commit comments

Comments
 (0)