mirror of
https://github.com/actions/setup-node.git
synced 2026-06-14 14:13:52 +08:00
fix: remove hardcoded bearer
This commit is contained in:
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
@@ -54246,7 +54246,7 @@ class BaseDistribution {
|
||||
const dataUrl = `${initialUrl}/index.json`;
|
||||
const headers = {};
|
||||
if (this.nodeInfo.mirrorToken) {
|
||||
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;
|
||||
headers['Authorization'] = this.nodeInfo.mirrorToken;
|
||||
}
|
||||
const response = await this.httpClient.getJson(dataUrl, headers);
|
||||
return response.result || [];
|
||||
|
||||
Reference in New Issue
Block a user