Ignore IP allow list errors in too_many_open_prs
Fixes https://github.com/orgs/Homebrew/discussions/6263. Even when SAML passes, an IP allow list can still restrict access to organization repos.
This commit is contained in:
parent
3fa656a8d1
commit
41fce10dde
@ -968,8 +968,12 @@ module GitHub
|
|||||||
pull_requests.fetch("pageInfo")
|
pull_requests.fetch("pageInfo")
|
||||||
end
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
# Ignore SAML access errors (https://github.com/Homebrew/brew/issues/18610)
|
# Ignore SAML access errors (https://github.com/Homebrew/brew/issues/18610) and related
|
||||||
raise unless e.message.include?("Resource protected by organization SAML enforcement")
|
# IP allow list errors (https://github.com/orgs/Homebrew/discussions/6263)
|
||||||
|
return false if e.message.include?("Resource protected by organization SAML enforcement") ||
|
||||||
|
e.message.include?("your IP address is not permitted to access this resource")
|
||||||
|
|
||||||
|
raise
|
||||||
end
|
end
|
||||||
|
|
||||||
false
|
false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user