Skip to content

Commit

Permalink
formula_installer: skip attestations on local_bottle_path
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Jul 13, 2024
1 parent 0f9ca1d commit e56fde6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Library/Homebrew/formula_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,12 @@ def downloader
def pour
# We skip `gh` to avoid a bootstrapping cycle, in the off-chance a user attempts
# to explicitly `brew install gh` without already having a version for bootstrapping.
if Homebrew::Attestation.enabled? && formula.tap&.core_tap? && formula.name != "gh"
# We also skip bottle installs from local bottle paths, as these are done in CI
# as part of the build lifecycle before attestations are produced.
if Homebrew::Attestation.enabled? \
&& formula.tap&.core_tap? \
&& formula.name != "gh" \
&& formula.local_bottle_path.blank?
ohai "Verifying attestation for #{formula.name}"
begin
Homebrew::Attestation.check_core_attestation formula.bottle
Expand Down

0 comments on commit e56fde6

Please sign in to comment.