diff --git a/lib/tests/formulae.rb b/lib/tests/formulae.rb index e5e16c3c..7a00c43e 100644 --- a/lib/tests/formulae.rb +++ b/lib/tests/formulae.rb @@ -297,8 +297,15 @@ def bottle_reinstall_formula(formula, new_formula, args:) @unchanged_dependencies -= @unchanged_build_dependencies end - test "brew", "install", "--only-dependencies", @bottle_filename - test "brew", "install", @bottle_filename + verify_attestations = if formula.name == "gh" + nil + else + ENV.fetch("HOMEBREW_VERIFY_ATTESTATIONS", nil) + end + test "brew", "install", "--only-dependencies", @bottle_filename, + env: { "HOMEBREW_VERIFY_ATTESTATIONS" => verify_attestations } + test "brew", "install", @bottle_filename, + env: { "HOMEBREW_VERIFY_ATTESTATIONS" => verify_attestations } end def build_bottle?(formula, args:)