Skip to content

Commit

Permalink
auth: Removed redundant ghauth.IsTenancy(host) check
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcg committed Oct 15, 2024
1 parent 81591a0 commit 8109594
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/cmd/attestation/auth/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8109594

Please sign in to comment.