mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-05-16 06:45:56 +00:00
Inline GitHub token gating for download URLs
This commit is contained in:
parent
2f9f369997
commit
ccabf26f97
2 changed files with 2 additions and 4 deletions
|
|
@ -54,7 +54,6 @@ export async function downloadVersion(
|
|||
|
||||
const mirrorUrl = rewriteToMirror(artifact.downloadUrl);
|
||||
const downloadUrl = mirrorUrl ?? artifact.downloadUrl;
|
||||
const downloadToken = githubTokenForUrl(downloadUrl, githubToken);
|
||||
|
||||
try {
|
||||
return await downloadArtifact(
|
||||
|
|
@ -64,7 +63,7 @@ export async function downloadVersion(
|
|||
arch,
|
||||
version,
|
||||
resolvedChecksum,
|
||||
downloadToken,
|
||||
githubTokenForUrl(downloadUrl, githubToken),
|
||||
);
|
||||
} catch (err) {
|
||||
if (mirrorUrl === undefined) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue