diff --git a/Library/Homebrew/utils/shared_audits.rb b/Library/Homebrew/utils/shared_audits.rb index 4dc494aca2674..3957c3d76420a 100644 --- a/Library/Homebrew/utils/shared_audits.rb +++ b/Library/Homebrew/utils/shared_audits.rb @@ -62,9 +62,9 @@ def self.github_release(user, repo, tag, formula: nil, cask: nil) [cask.tap&.audit_exception(:github_prerelease_allowlist, cask.token), cask.token, cask.version] end - return "#{tag} is a GitHub pre-release." if release["prerelease"] && [version, "all"].exclude?(exception) + return "#{tag} is a GitHub pre-release." if release["prerelease"] && [version, "all", "any"].exclude?(exception) - if !release["prerelease"] && exception + if !release["prerelease"] && [version, "any"].exclude?(exception) return "#{tag} is not a GitHub pre-release but '#{name}' is in the GitHub prerelease allowlist." end