@@ -166,7 +166,9 @@ def run
166166 read_only_run : args . dry_run? ,
167167 silent : args . quiet? )
168168
169- run_cask_audit ( cask , old_contents )
169+ audit_exceptions = [ ]
170+ audit_exceptions << "min_os" if ENV [ "HOMEBREW_TEST_BOT_AUTOBUMP" ] . present?
171+ run_cask_audit ( cask , old_contents , audit_exceptions )
170172 run_cask_style ( cask , old_contents )
171173
172174 pr_info = {
@@ -324,8 +326,8 @@ def check_pull_requests(cask, new_version:)
324326 end
325327 end
326328
327- sig { params ( cask : Cask ::Cask , old_contents : String ) . void }
328- def run_cask_audit ( cask , old_contents )
329+ sig { params ( cask : Cask ::Cask , old_contents : String , audit_exceptions : T :: Array [ String ] ) . void }
330+ def run_cask_audit ( cask , old_contents , audit_exceptions = [ ] )
329331 if args . dry_run?
330332 if args . no_audit?
331333 ohai "Skipping `brew audit`"
@@ -338,7 +340,8 @@ def run_cask_audit(cask, old_contents)
338340 if args . no_audit?
339341 ohai "Skipping `brew audit`"
340342 else
341- system HOMEBREW_BREW_FILE , "audit" , "--cask" , "--online" , cask . full_name
343+ system HOMEBREW_BREW_FILE , "audit" , "--cask" , "--online" , cask . full_name ,
344+ "--except=#{ audit_exceptions . join ( "," ) } "
342345 failed_audit = !$CHILD_STATUS. success?
343346 end
344347 return unless failed_audit
0 commit comments