5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2026-03-29 01:49:53 +00:00

Always fall back to anonymous download (#304)

Closes: #268
Closes: #305
This commit is contained in:
Kevin Stillhammer
2025-02-28 17:25:17 +01:00
committed by GitHub
parent 754a7d4c2d
commit 0313224678
8 changed files with 97239 additions and 42569 deletions

View File

@@ -1,20 +1,16 @@
import * as semver from "semver";
import * as core from "@actions/core";
import { Octokit } from "@octokit/core";
import { paginateRest } from "@octokit/plugin-paginate-rest";
import { restEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
import { Octokit } from "./utils/octokit";
import { OWNER, REPO } from "./utils/constants";
import { updateChecksums } from "./download/checksum/update-known-checksums";
const PaginatingOctokit = Octokit.plugin(paginateRest, restEndpointMethods);
async function run(): Promise<void> {
const checksumFilePath = process.argv.slice(2)[0];
const github_token = process.argv.slice(2)[1];
const octokit = new PaginatingOctokit({
const octokit = new Octokit({
auth: github_token,
});