Skip to content

Commit 0e2c5c9

Browse files
fix: remove hardcoded bearer
1 parent 2951748 commit 0e2c5c9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/setup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54246,7 +54246,7 @@ class BaseDistribution {
5424654246
const dataUrl = `${initialUrl}/index.json`;
5424754247
const headers = {};
5424854248
if (this.nodeInfo.mirrorToken) {
54249-
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;
54249+
headers['Authorization'] = this.nodeInfo.mirrorToken;
5425054250
}
5425154251
const response = await this.httpClient.getJson(dataUrl, headers);
5425254252
return response.result || [];

docs/advanced-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ Please refer to the [Ensuring workflow access to your package - Configuring a pa
470470
It is possible to use a private mirror hosting Node.js binaries. This mirror must be a full mirror of the official Node.js distribution.
471471
The mirror URL can be set using the `mirror` input.
472472
It is possible to specify a token to authenticate with the mirror using the `mirror-token` input.
473-
The token will be passed as a bearer token in the `Authorization` header.
473+
The token will be passed in the `Authorization` header.
474474

475475
```yaml
476476
- uses: actions/setup-node@v6

src/distributions/base-distribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default abstract class BaseDistribution {
103103
const headers = {};
104104

105105
if (this.nodeInfo.mirrorToken) {
106-
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`;
106+
headers['Authorization'] = this.nodeInfo.mirrorToken;
107107
}
108108

109109
const response = await this.httpClient.getJson<INodeVersion[]>(

0 commit comments

Comments
 (0)