v4.1.4: disable GHES check

This commit is contained in:
Earl Warren 2024-03-21 14:05:28 +01:00
parent c850b930e6
commit d8d0a99033
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

8
dist/index.js vendored
View file

@ -3067,11 +3067,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() {
@ -125331,4 +125327,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;