From 8109594c4ce6038ab500fb403cf8bd919d17fd95 Mon Sep 17 00:00:00 2001 From: Tyler McGoffin Date: Fri, 11 Oct 2024 15:21:52 -0700 Subject: [PATCH] auth: Removed redundant ghauth.IsTenancy(host) check --- pkg/cmd/attestation/auth/host.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/cmd/attestation/auth/host.go b/pkg/cmd/attestation/auth/host.go index a8997c403e3..d72f82fa551 100644 --- a/pkg/cmd/attestation/auth/host.go +++ b/pkg/cmd/attestation/auth/host.go @@ -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