Always use api.github.com ()

The octokit client would default to the URL of enterprise instances and
then not be able to find the uv repo.

Closes: 
This commit is contained in:
Kevin Stillhammer 2024-12-11 18:42:54 +01:00 committed by GitHub
parent 884a30e33c
commit 3460fe1a9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 18 additions and 10 deletions
dist/update-known-checksums

View file

@ -34685,7 +34685,7 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
const checksumFilePath = process.argv.slice(2)[0];
const github_token = process.argv.slice(2)[1];
const octokit = github.getOctokit(github_token);
const octokit = github.getOctokit(github_token, { baseUrl: constants_1.GITHUB_COM_API });
const response = yield octokit.paginate(octokit.rest.repos.listReleases, {
owner: constants_1.OWNER,
repo: constants_1.REPO,
@ -34711,10 +34711,11 @@ run();
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.TOOL_CACHE_NAME = exports.OWNER = exports.REPO = void 0;
exports.GITHUB_COM_API = exports.TOOL_CACHE_NAME = exports.OWNER = exports.REPO = void 0;
exports.REPO = "uv";
exports.OWNER = "astral-sh";
exports.TOOL_CACHE_NAME = "uv";
exports.GITHUB_COM_API = "https://api.github.com";
/***/ }),