Merge 0e2c5c90a12fd03258e907b71392191635183ef7 into 6044e13b5dc448c55e2357c09f80417699197238

This commit is contained in:
Marco Ippolito 2026-01-15 08:43:50 +01:00 committed by GitHub
commit f9537f978c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

2
dist/setup/index.js vendored
View File

@ -54246,7 +54246,7 @@ class BaseDistribution {
const dataUrl = `${initialUrl}/index.json`; const dataUrl = `${initialUrl}/index.json`;
const headers = {}; const headers = {};
if (this.nodeInfo.mirrorToken) { if (this.nodeInfo.mirrorToken) {
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`; headers['Authorization'] = this.nodeInfo.mirrorToken;
} }
const response = await this.httpClient.getJson(dataUrl, headers); const response = await this.httpClient.getJson(dataUrl, headers);
return response.result || []; return response.result || [];

View File

@ -470,7 +470,7 @@ Please refer to the [Ensuring workflow access to your package - Configuring a pa
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. 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.
The mirror URL can be set using the `mirror` input. The mirror URL can be set using the `mirror` input.
It is possible to specify a token to authenticate with the mirror using the `mirror-token` input. It is possible to specify a token to authenticate with the mirror using the `mirror-token` input.
The token will be passed as a bearer token in the `Authorization` header. The token will be passed in the `Authorization` header.
```yaml ```yaml
- uses: actions/setup-node@v6 - uses: actions/setup-node@v6

View File

@ -103,7 +103,7 @@ export default abstract class BaseDistribution {
const headers = {}; const headers = {};
if (this.nodeInfo.mirrorToken) { if (this.nodeInfo.mirrorToken) {
headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`; headers['Authorization'] = this.nodeInfo.mirrorToken;
} }
const response = await this.httpClient.getJson<INodeVersion[]>( const response = await this.httpClient.getJson<INodeVersion[]>(