diff --git a/pkg/cli/git.go b/pkg/cli/git.go index 459b9e63976..8b4f9fbf195 100644 --- a/pkg/cli/git.go +++ b/pkg/cli/git.go @@ -176,7 +176,7 @@ func getGHESAllowedDomains() []string { // For GHES, allow both the main host and api subdomain domains := []string{ host, - fmt.Sprintf("api.%s", host), + "api." + host, } gitLog.Printf("GHES allowed domains: %v", domains)