From a729ebace7e6507e94083c0fc2aaf90bf522cd1e Mon Sep 17 00:00:00 2001
From: Dmitry Shibanov <shibanov-1997@inbox.ru>
Date: Mon, 17 Oct 2022 12:52:15 +0200
Subject: [PATCH] pass the token input through on GHES

---
 dist/setup/index.js | 2 +-
 src/main.ts         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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(