Set octokit's baseUrl explicitly (#24)

This commit is contained in:
Mark Szabo 2024-06-04 22:56:06 +09:00 committed by GitHub
parent a70df706fa
commit a948e3e824
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,9 @@ async function downloadBazelisk() {
}
const token = core.getInput('token')
const octokit = github.getOctokit(token)
const octokit = github.getOctokit(token, {
baseUrl: 'https://api.github.com'
})
const { data: releases } = await octokit.rest.repos.listReleases({
owner: 'bazelbuild',
repo: 'bazelisk'