MCPcopy Index your code
hub / github.com/cli/cli / IsHostSupported

Function IsHostSupported

pkg/cmd/attestation/auth/host.go:11–16  ·  view source on GitHub ↗
(host string)

Source from the content-addressed store, hash-verified

9var ErrUnsupportedHost = errors.New("An unsupported host was detected. Note that gh attestation does not currently support GHES")
10
11func IsHostSupported(host string) error {
12 if ghauth.IsEnterprise(host) {
13 return ErrUnsupportedHost
14 }
15 return nil
16}

Callers 1

TestIsHostSupportedFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsHostSupportedFunction · 0.68