diff --git a/Library/Homebrew/attestation.rb b/Library/Homebrew/attestation.rb index 853643465f..3e19d100bc 100644 --- a/Library/Homebrew/attestation.rb +++ b/Library/Homebrew/attestation.rb @@ -246,6 +246,12 @@ module Homebrew end backfill_attestation + rescue InvalidAttestationError => e + raise if ENV["HOMEBREW_GITHUB_ACTIONS"].blank? + + opoo "Attestation verification failed (please verify that this is not a network error before rebottling): #{e}" + + {} end end end