package auth import ( "errors" "github.com/cli/cli/v2/internal/ghinstance" ) var ErrUnsupportedHost = errors.New("An unsupported host was detected. Note that gh attestation does not currently support GHES") func IsHostSupported(host string) error { // Note that this check is slightly redundant as Tenancy should not be considered Enterprise // but the ghinstance package has not been updated to reflect this yet. if ghinstance.IsEnterprise(host) && !ghinstance.IsTenancy(host) { return ErrUnsupportedHost } return nil }