From 16871d9e8cfcf27ff31822cac382bbb5450f1e1e Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 21 Mar 2024 13:59:27 +0100 Subject: [PATCH] v4.3.1: disable GHES check --- dist/merge/index.js | 8 ++------ dist/upload/index.js | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/dist/merge/index.js b/dist/merge/index.js index 64b7b97..d4574a7 100644 --- a/dist/merge/index.js +++ b/dist/merge/index.js @@ -3023,11 +3023,7 @@ function getResultsServiceUrl() { } exports.getResultsServiceUrl = getResultsServiceUrl; function isGhes() { - const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com'); - const hostname = ghUrl.hostname.trimEnd().toUpperCase(); - const isGitHubHost = hostname === 'GITHUB.COM'; - const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST'); - return !isGitHubHost && !isGheHost; + return false; } exports.isGhes = isGhes; function getGitHubWorkspaceDir() { @@ -133673,4 +133669,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"] /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +; diff --git a/dist/upload/index.js b/dist/upload/index.js index 3b3b208..df5e07f 100644 --- a/dist/upload/index.js +++ b/dist/upload/index.js @@ -3023,11 +3023,7 @@ function getResultsServiceUrl() { } exports.getResultsServiceUrl = getResultsServiceUrl; function isGhes() { - const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com'); - const hostname = ghUrl.hostname.trimEnd().toUpperCase(); - const isGitHubHost = hostname === 'GITHUB.COM'; - const isGheHost = hostname.endsWith('.GHE.COM') || hostname.endsWith('.GHE.LOCALHOST'); - return !isGitHubHost && !isGheHost; + return false; } exports.isGhes = isGhes; function getGitHubWorkspaceDir() { @@ -131829,4 +131825,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"] /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +;