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
@@ -106,9 +106,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
||||
downloadPath = await tc.downloadTool(
|
||||
versionInfo.downloadUrl,
|
||||
undefined,
|
||||
this.nodeInfo.mirror && this.nodeInfo.mirrorToken
|
||||
? this.nodeInfo.mirrorToken
|
||||
: this.nodeInfo.auth
|
||||
this.nodeInfo.auth
|
||||
);
|
||||
|
||||
if (downloadPath) {
|
||||
@@ -287,9 +285,7 @@ export default class OfficialBuilds extends BaseDistribution {
|
||||
const manifest = await tc.getManifestFromRepo(
|
||||
'actions',
|
||||
'node-versions',
|
||||
this.nodeInfo.mirror && this.nodeInfo.mirrorToken
|
||||
? this.nodeInfo.mirrorToken
|
||||
: this.nodeInfo.auth,
|
||||
this.nodeInfo.auth,
|
||||
'main'
|
||||
);
|
||||
if (isValidManifest(manifest)) {
|
||||
|
||||
Reference in new issue
Block a user