disable ghes no support check

This commit is contained in:
ChristopherHX 2024-01-22 11:45:36 +01:00 committed by GitHub
parent bb3fa7fd35
commit 75635f32b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

3
dist/index.js vendored
View File

@ -2698,8 +2698,7 @@ function getResultsServiceUrl() {
} }
exports.getResultsServiceUrl = getResultsServiceUrl; exports.getResultsServiceUrl = getResultsServiceUrl;
function isGhes() { function isGhes() {
const ghUrl = new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com'); return false;
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
} }
exports.isGhes = isGhes; exports.isGhes = isGhes;
function getGitHubWorkspaceDir() { function getGitHubWorkspaceDir() {