diff --git a/dist/setup/index.js b/dist/setup/index.js index 7eefc1f..30b9a71 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -63520,7 +63520,7 @@ function run() { } if (versionSpec) { let token = core.getInput('token'); - let auth = !token || cache_utils_1.isGhes() ? undefined : `token ${token}`; + let auth = !token ? undefined : `token ${token}`; const checkLatest = core.getBooleanInput('check-latest'); const installDir = yield installer.getGo(versionSpec, checkLatest, auth, arch); core.addPath(path_1.default.join(installDir, 'bin')); diff --git a/src/main.ts b/src/main.ts index 8648d4d..4f8d19d 100644 --- a/src/main.ts +++ b/src/main.ts @@ -28,7 +28,7 @@ export async function run() { if (versionSpec) { let token = core.getInput('token'); - let auth = !token || isGhes() ? undefined : `token ${token}`; + let auth = !token ? undefined : `token ${token}`; const checkLatest = core.getBooleanInput('check-latest'); const installDir = await installer.getGo(