attestation: only enable for developers outside CI
Let's hold off on CI and devcmdrun for now.
This commit is contained in:
parent
3ff8b65109
commit
5771c2f968
@ -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?
|
||||||
Homebrew::EnvConfig.verify_attestations? ||
|
return false if ENV.fetch("CI", false)
|
||||||
Homebrew::EnvConfig.developer? ||
|
|
||||||
Homebrew::Settings.read("devcmdrun") == "true"
|
Homebrew::EnvConfig.developer?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a path to a suitable `gh` executable for attestation verification.
|
# Returns a path to a suitable `gh` executable for attestation verification.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user