Merge pull request #17713 from Homebrew/MikeMcQuaid-patch-1

This commit is contained in:
Mike McQuaid 2024-07-13 18:08:25 -04:00 committed by GitHub
commit b86515bb75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,10 +48,10 @@ module Homebrew
# TODO: allow this undocumented variable until this is rolled out more # TODO: allow this undocumented variable until this is rolled out more
# widely and then we can remove or document it. # widely and then we can remove or document it.
return false if ENV.fetch("HOMEBREW_NO_VERIFY_ATTESTATIONS", false) 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::EnvConfig.developer? ||
Homebrew::Settings.read("devcmdrun") == "true"
end end
# Returns a path to a suitable `gh` executable for attestation verification. # Returns a path to a suitable `gh` executable for attestation verification.