Pass the token input through on GHES (#595)

This commit is contained in:
Dmitry Shibanov authored and GitHub committed 2022-11-02 12:24:44 +01:00
1 parent 16352bb09b
commit 00e1b6691b
4 files changed
+19 -4

No files matched your search

+1 -1
View File
@@ -73628,7 +73628,7 @@ function run() {
}
if (version) {
let token = core.getInput('token');
let auth = !token || cache_utils_1.isGhes() ? undefined : `token ${token}`;
let auth = !token ? undefined : `token ${token}`;
let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
const checkLatest = (core.getInput('check-latest') || 'false').toUpperCase() === 'TRUE';
yield installer.getNode(version, stable, checkLatest, auth, arch);