audit: add CERT_ERROR_ALLOWLIST

This commit is contained in:
Alexander Bayandin 2020-08-20 16:29:42 +01:00
parent 6cde37247d
commit 4ba4da506b

View File

@ -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,