pass the token input through on GHES

This commit is contained in:
Dmitry Shibanov 2022-10-17 12:52:15 +02:00
parent f556e5b7e0
commit a729ebace7
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js vendored
View File

@ -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'));

View File

@ -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(