From 104a0a36a038cbb74ff9faf920f4956f3c36553c Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Tue, 7 Jan 2025 14:24:18 -0800 Subject: [PATCH] Fix regression with missing token Closes #59 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7cdd7cd..c2bda46 100644 --- a/index.js +++ b/index.js @@ -69,7 +69,8 @@ async function downloadBazelisk() { filename = `${filename}.exe` } - const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, { + const token = process.env.BAZELISK_GITHUB_TOKEN + const octokit = github.getOctokit(token, { baseUrl: 'https://api.github.com' }) const { data: releases } = await octokit.rest.repos.listReleases({