mirror of
https://github.com/actions/setup-node.git
synced 2026-12-01 19:04:22 +01:00
fix: send GitHub token instead of mirror-token to GitHub endpoints (#1669)
This commit is contained in:
1 parent
387287a7d3
commit
62c15e112d
3 files changed
+67
-12
No files matched your search
Vendored
+2
-6
@@ -99051,9 +99051,7 @@ class OfficialBuilds extends BaseDistribution {
|
||||
const versionInfo = await this.getInfoFromManifest(this.nodeInfo.versionSpec, this.nodeInfo.stable, osArch, manifest);
|
||||
if (versionInfo) {
|
||||
core_info(`Acquiring ${versionInfo.resolvedVersion} - ${versionInfo.arch} from ${versionInfo.downloadUrl}`);
|
||||
downloadPath = await downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.mirror && this.nodeInfo.mirrorToken
|
||||
? this.nodeInfo.mirrorToken
|
||||
: this.nodeInfo.auth);
|
||||
downloadPath = await downloadTool(versionInfo.downloadUrl, undefined, this.nodeInfo.auth);
|
||||
if (downloadPath) {
|
||||
toolPath = await this.extractArchive(downloadPath, versionInfo, false);
|
||||
}
|
||||
@@ -99174,9 +99172,7 @@ class OfficialBuilds extends BaseDistribution {
|
||||
core_debug('Getting manifest from actions/node-versions@main');
|
||||
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
||||
try {
|
||||
const manifest = await getManifestFromRepo('actions', 'node-versions', this.nodeInfo.mirror && this.nodeInfo.mirrorToken
|
||||
? this.nodeInfo.mirrorToken
|
||||
: this.nodeInfo.auth, 'main');
|
||||
const manifest = await getManifestFromRepo('actions', 'node-versions', this.nodeInfo.auth, 'main');
|
||||
if (isValidManifest(manifest)) {
|
||||
return manifest;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user