diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 776895aebb..c5ee746e75 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -565,12 +565,7 @@ module Homebrew # 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"] + 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))