From 25262db14be702667917540fea1573b10776fca9 Mon Sep 17 00:00:00 2001 From: Mungo Dewar Date: Mon, 10 Mar 2025 12:03:35 +0000 Subject: [PATCH] fix: pass baseUrl into Octokit constructor --- dist/index.js | 6 ++++-- index.js | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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(