mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 07:59:02 +08:00
attestation: require explicit opt-in.
Work on this has stalled a bit and it slows things down so let's require an explicit opt-in to use it. While we're here, remove the silent/implicit opt-out for CI, too.
This commit is contained in:
parent
700d67a85e
commit
17762fa77a
@ -64,12 +64,8 @@ module Homebrew
|
||||
sig { returns(T::Boolean) }
|
||||
def self.enabled?
|
||||
return false if Homebrew::EnvConfig.no_verify_attestations?
|
||||
return true if Homebrew::EnvConfig.verify_attestations?
|
||||
return false if ENV.fetch("CI", false)
|
||||
return false if OS.not_tier_one_configuration?
|
||||
|
||||
# Always check credentials last to avoid unnecessary credential extraction.
|
||||
(Homebrew::EnvConfig.developer? || Homebrew::EnvConfig.devcmdrun?) && GitHub::API.credentials.present?
|
||||
Homebrew::EnvConfig.verify_attestations?
|
||||
end
|
||||
|
||||
# Returns a path to a suitable `gh` executable for attestation verification.
|
||||
|
Loading…
x
Reference in New Issue
Block a user