File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12631,9 +12631,9 @@ async function run() {
12631
12631
12632
12632
let newSessionExtra = ""
12633
12633
if (core.getInput("limit-access-to-actor") === "true") {
12634
- const { actor } = github.context
12634
+ const { actor, apiUrl } = github.context
12635
12635
const auth = core.getInput('github-token')
12636
- const octokit = new dist_node/* Octokit */.v({ auth })
12636
+ const octokit = new dist_node/* Octokit */.v({ auth, baseUrl: apiUrl })
12637
12637
12638
12638
const keys = await octokit.users.listPublicKeysForUser({
12639
12639
username: actor
Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ export async function run() {
80
80
81
81
let newSessionExtra = ""
82
82
if ( core . getInput ( "limit-access-to-actor" ) === "true" ) {
83
- const { actor } = github . context
83
+ const { actor, apiUrl } = github . context
84
84
const auth = core . getInput ( 'github-token' )
85
- const octokit = new Octokit ( { auth } )
85
+ const octokit = new Octokit ( { auth, baseUrl : apiUrl } )
86
86
87
87
const keys = await octokit . users . listPublicKeysForUser ( {
88
88
username : actor
You can’t perform that action at this time.
0 commit comments