From f31cbe1a2214871dd08b39e2293ae307409d14c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 31 Jan 2026 05:44:21 +0800 Subject: [PATCH] feat: disable GHES check --- dist/index.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2eeadf1..2e4fe16 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2927,12 +2927,7 @@ function getResultsServiceUrl() { return new URL(resultsUrl).origin; } 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'); - const isLocalHost = hostname.endsWith('.LOCALHOST'); - return !isGitHubHost && !isGheHost && !isLocalHost; + return false; } function getGitHubWorkspaceDir() { const ghWorkspaceDir = process.env['GITHUB_WORKSPACE'];