From da3cb65857beac830435c38a5b9c7da900c8949f Mon Sep 17 00:00:00 2001 From: botantony Date: Sat, 15 Mar 2025 22:32:03 +0100 Subject: [PATCH] Skip homepage audit for `www.gnu.org` on GitHub runners Signed-off-by: botantony --- Library/Homebrew/formula_auditor.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index c9e1a438c9..776895aebb 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -563,6 +563,15 @@ 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 + gnu_homepages = [ + %r{https://www\.gnu\.org/.+}, + %r{https://www\.nongnu\.org/.+}, + ] + + return if gnu_homepages.any?(&homepage.method(:match?)) && ENV["HOMEBREW_GITHUB_HOSTED_RUNNER"] + use_homebrew_curl = [:stable, :head].any? do |spec_name| next false unless (spec = formula.send(spec_name))