Skip to content

Commit

Permalink
Merge pull request #17713 from Homebrew/MikeMcQuaid-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Jul 13, 2024
2 parents 3ff8b65 + 99b278b commit b86515b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/attestation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ def self.enabled?
# TODO: allow this undocumented variable until this is rolled out more
# widely and then we can remove or document it.
return false if ENV.fetch("HOMEBREW_NO_VERIFY_ATTESTATIONS", false)
return true if Homebrew::EnvConfig.verify_attestations?
return false if ENV.fetch("CI", false)

Homebrew::EnvConfig.verify_attestations? ||
Homebrew::EnvConfig.developer? ||
Homebrew::Settings.read("devcmdrun") == "true"
Homebrew::EnvConfig.developer?
end

# Returns a path to a suitable `gh` executable for attestation verification.
Expand Down

0 comments on commit b86515b

Please sign in to comment.