auth: Removed redundant ghauth.IsTenancy(host) check

This commit is contained in:
Tyler McGoffin 2024-10-11 15:21:52 -07:00
parent 81591a09b8
commit 8109594c4c

View file

@ -9,9 +9,7 @@ import (
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 ghauth.IsEnterprise(host) && !ghauth.IsTenancy(host) {
if ghauth.IsEnterprise(host) {
return ErrUnsupportedHost
}
return nil