Merge pull request #19501 from botantony/ignore-gnu-homepage

Skip homepage audit for `www.gnu.org` and `www.nongnu.org` on GitHub runners
This commit is contained in:
Bo Anderson 2025-03-16 03:32:57 +00:00 committed by GitHub
commit 3d8e895748
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,6 +563,10 @@ module Homebrew
return unless DevelopmentTools.curl_handles_most_https_certificates?
# Skip gnu.org and nongnu.org audit on GitHub runners
# See issue: https://github.com/Homebrew/homebrew-core/issues/206757
return if homepage.match?(%r{^https?://www\.(?:non)?gnu\.org/.+}) && ENV["HOMEBREW_GITHUB_HOSTED_RUNNER"]
use_homebrew_curl = [:stable, :head].any? do |spec_name|
next false unless (spec = formula.send(spec_name))