diff --git a/dist/setup/index.js b/dist/setup/index.js index c59bedb4f..3523ed50a 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -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 || []; diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 2e02d9c56..4b54ffd54 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -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. 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. -The token will be passed as a bearer token in the `Authorization` header. +The token will be passed in the `Authorization` header. ```yaml - uses: actions/setup-node@v6 diff --git a/src/distributions/base-distribution.ts b/src/distributions/base-distribution.ts index 0a99f3a8c..dc9c9d532 100644 --- a/src/distributions/base-distribution.ts +++ b/src/distributions/base-distribution.ts @@ -103,7 +103,7 @@ export default abstract class BaseDistribution { const headers = {}; if (this.nodeInfo.mirrorToken) { - headers['Authorization'] = `Bearer ${this.nodeInfo.mirrorToken}`; + headers['Authorization'] = this.nodeInfo.mirrorToken; } const response = await this.httpClient.getJson(