Rename :cert_error_allowlist to :secure_connection_audit_skiplist

This commit is contained in:
Rylan Polster 2021-10-09 13:01:09 -04:00
parent fa4bb7d74a
commit e24703e58d
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -754,12 +754,12 @@ module Cask
def check_url_for_https_availability(url_to_check, url_type, cask_token, tap, **options) def check_url_for_https_availability(url_to_check, url_type, cask_token, tap, **options)
problem = curl_check_http_content(url_to_check.to_s, url_type, **options) problem = curl_check_http_content(url_to_check.to_s, url_type, **options)
exception = tap&.audit_exception(:cert_error_allowlist, cask_token, url_to_check.to_s) exception = tap&.audit_exception(:secure_connection_audit_skiplist, cask_token, url_to_check.to_s)
if problem if problem
add_error problem unless exception add_error problem unless exception
elsif exception elsif exception
add_error "#{url_to_check} is in the certificate error allowlist but does not have a certificate error" add_error "#{url_to_check} is in the secure connection audit skiplist but does not need to be skipped"
end end
end end
end end