auth: Removed redundant ghauth.IsTenancy(host) check
This commit is contained in:
parent
81591a09b8
commit
8109594c4c
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue