restore passing baseUrl where appropriate

This commit is contained in:
John Wesley Walker III 2024-10-16 17:35:40 +00:00
parent df4b58c789
commit 2f42443dda
3 changed files with 39 additions and 15 deletions

View file

@ -88,7 +88,7 @@ export async function getDefaultBranch(
return await retryHelper.execute(async () => {
core.info('Retrieving the default branch name')
const octokit = github.getOctokit(authToken, {
baseUrl: getServerApiUrl()
baseUrl: getServerApiUrl(baseUrl)
})
let result: string
try {
@ -131,7 +131,7 @@ async function downloadArchive(
baseUrl?: string
): Promise<Buffer> {
const octokit = github.getOctokit(authToken, {
baseUrl: getServerApiUrl()
baseUrl: getServerApiUrl(baseUrl)
})
const download = IS_WINDOWS
? octokit.rest.repos.downloadZipballArchive