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