Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Alex Rodionov
3f23bbe031 Export BAZELISK_GITHUB_TOKEN variable
Fixes #57
2025-01-05 14:53:02 -08:00
2 changed files with 4 additions and 2 deletions

View file

@ -123,6 +123,9 @@ if (externalCacheConfig) {
}
}
const token = core.getInput('token')
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
module.exports = {
baseCacheKey,
bazeliskCache: {

View file

@ -69,8 +69,7 @@ async function downloadBazelisk() {
filename = `${filename}.exe`
}
const token = core.getInput('token')
const octokit = github.getOctokit(token, {
const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, {
baseUrl: 'https://api.github.com'
})
const { data: releases } = await octokit.rest.repos.listReleases({