Skip to content

Commit

Permalink
attestation: only enable for developers outside CI
Browse files Browse the repository at this point in the history
Let's hold off on CI and devcmdrun for now.
  • Loading branch information
MikeMcQuaid authored Jul 13, 2024
1 parent 3ff8b65 commit 5771c2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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)

Homebrew::EnvConfig.verify_attestations? ||
Homebrew::EnvConfig.developer? ||
Homebrew::Settings.read("devcmdrun") == "true"
return true if Homebrew::EnvConfig.verify_attestations?
return false if ENV.fetch("CI", false)

Homebrew::EnvConfig.developer?
end

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

0 comments on commit 5771c2f

Please sign in to comment.