audit: add CERT_ERROR_ALLOWLIST
This commit is contained in:
parent
6cde37247d
commit
4ba4da506b
@ -545,6 +545,10 @@ module Homebrew
|
||||
problem "Versioned formulae in homebrew/core should use `keg_only :versioned_formula`"
|
||||
end
|
||||
|
||||
CERT_ERROR_ALLOWLIST = {
|
||||
"monero" => "https://www.getmonero.org/",
|
||||
}.freeze
|
||||
|
||||
def audit_homepage
|
||||
homepage = formula.homepage
|
||||
|
||||
@ -552,6 +556,8 @@ module Homebrew
|
||||
|
||||
return unless @online
|
||||
|
||||
return if CERT_ERROR_ALLOWLIST[formula.name] == homepage
|
||||
|
||||
return unless DevelopmentTools.curl_handles_most_https_certificates?
|
||||
|
||||
if http_content_problem = curl_check_http_content(homepage,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user