diff --git a/src/Runner.Sdk/Util/UrlUtil.cs b/src/Runner.Sdk/Util/UrlUtil.cs index 2c932e8c1f1..91c3a522e99 100644 --- a/src/Runner.Sdk/Util/UrlUtil.cs +++ b/src/Runner.Sdk/Util/UrlUtil.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace GitHub.Runner.Sdk { @@ -11,10 +11,11 @@ public static bool IsHostedServer(UriBuilder gitHubUrl) return false; } - return + return string.Equals(gitHubUrl.Host, "github.com", StringComparison.OrdinalIgnoreCase) || string.Equals(gitHubUrl.Host, "www.github.com", StringComparison.OrdinalIgnoreCase) || string.Equals(gitHubUrl.Host, "github.localhost", StringComparison.OrdinalIgnoreCase) || + gitHubUrl.Host.EndsWith(".ghe.localhost", StringComparison.OrdinalIgnoreCase) || gitHubUrl.Host.EndsWith(".ghe.com", StringComparison.OrdinalIgnoreCase); }