Skip to content

Commit

Permalink
Don't verify attestations for 3rd-party taps
Browse files Browse the repository at this point in the history
The CI machines for 3rd-party taps might not have a gh token
and may fail to verify attestations.
  • Loading branch information
scpeters authored Sep 26, 2024
1 parent c43db6c commit cceacaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def run!(args)
ENV["HOMEBREW_NO_ENV_HINTS"] = "1"
ENV["HOMEBREW_PATH"] = ENV["PATH"] =
"#{HOMEBREW_PREFIX}/bin:#{HOMEBREW_PREFIX}/sbin:#{ENV.fetch("PATH")}"
ENV["HOMEBREW_VERIFY_ATTESTATIONS"] = "1"

if local?(args)
home = "#{Dir.pwd}/home"
Expand All @@ -88,6 +87,7 @@ def run!(args)
tap = resolve_test_tap(args.tap)

ENV["HOMEBREW_NO_INSTALL_FROM_API"] = "1" if tap.to_s == CoreTap.instance.name
ENV["HOMEBREW_VERIFY_ATTESTATIONS"] = "1" if tap.to_s == CoreTap.instance.name

# Tap repository if required, this is done before everything else
# because Formula parsing and/or git commit hash lookup depends on it.
Expand Down

0 comments on commit cceacaf

Please sign in to comment.