diff --git a/dist/index.js b/dist/index.js index 51b127067..f109744df 100644 --- a/dist/index.js +++ b/dist/index.js @@ -93785,7 +93785,8 @@ const getCiBuildId = async () => { GITHUB_SHA, GITHUB_TOKEN, GITHUB_RUN_ID, - GITHUB_REPOSITORY + GITHUB_REPOSITORY, + GITHUB_API_URL } = process.env const [owner, repo] = GITHUB_REPOSITORY.split('/') @@ -93798,7 +93799,8 @@ const getCiBuildId = async () => { ) const client = new Octokit({ - auth: GITHUB_TOKEN + auth: GITHUB_TOKEN, + baseUrl: GITHUB_API_URL }) const resp = await client.request( diff --git a/index.js b/index.js index 3ddccadc2..3ff8a12f3 100644 --- a/index.js +++ b/index.js @@ -522,7 +522,8 @@ const getCiBuildId = async () => { GITHUB_SHA, GITHUB_TOKEN, GITHUB_RUN_ID, - GITHUB_REPOSITORY + GITHUB_REPOSITORY, + GITHUB_API_URL } = process.env const [owner, repo] = GITHUB_REPOSITORY.split('/') @@ -535,7 +536,8 @@ const getCiBuildId = async () => { ) const client = new Octokit({ - auth: GITHUB_TOKEN + auth: GITHUB_TOKEN, + baseUrl: GITHUB_API_URL }) const resp = await client.request(