diff --git a/lib/index.js b/lib/index.js index e2d5cede..ab808329 100644 --- a/lib/index.js +++ b/lib/index.js @@ -12631,9 +12631,9 @@ async function run() { let newSessionExtra = "" if (core.getInput("limit-access-to-actor") === "true") { - const { actor } = github.context + const { actor, apiUrl } = github.context const auth = core.getInput('github-token') - const octokit = new dist_node/* Octokit */.v({ auth }) + const octokit = new dist_node/* Octokit */.v({ auth, baseUrl: apiUrl }) const keys = await octokit.users.listPublicKeysForUser({ username: actor diff --git a/src/index.js b/src/index.js index d35cf19a..d1e158d3 100644 --- a/src/index.js +++ b/src/index.js @@ -80,9 +80,9 @@ export async function run() { let newSessionExtra = "" if (core.getInput("limit-access-to-actor") === "true") { - const { actor } = github.context + const { actor, apiUrl } = github.context const auth = core.getInput('github-token') - const octokit = new Octokit({ auth }) + const octokit = new Octokit({ auth, baseUrl: apiUrl }) const keys = await octokit.users.listPublicKeysForUser({ username: actor