diff options
| author | Mike McQuaid | 2017-04-22 16:31:19 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2017-04-22 16:31:19 +0100 | 
| commit | d02b4f321d01fbd4cd2b4c1bd76d1f06d1612126 (patch) | |
| tree | c7c3945f258f8b33278b120f788b8c6c82a21688 /Library/Homebrew/dev-cmd/pull.rb | |
| parent | 206d6de845c9041bbbd4d955e56befb338295e96 (diff) | |
| download | brew-d02b4f321d01fbd4cd2b4c1bd76d1f06d1612126.tar.bz2 | |
Hide sensitive tokens from install/test/post.
Hide these tokens to avoid malicious subprocesses e.g. sending them
over the network. Also, support using these tokens with environment
filtering and clear `HOMEBREW_PATH` from subprocesses to stop them
sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s
PATH for e.g. `brew doctor` etc.
Diffstat (limited to 'Library/Homebrew/dev-cmd/pull.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/pull.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/pull.rb b/Library/Homebrew/dev-cmd/pull.rb index 36c9ac27c..0616b990b 100644 --- a/Library/Homebrew/dev-cmd/pull.rb +++ b/Library/Homebrew/dev-cmd/pull.rb @@ -263,7 +263,7 @@ module Homebrew      end      published = [] -    bintray_creds = { user: ENV["BINTRAY_USER"], key: ENV["BINTRAY_KEY"] } +    bintray_creds = { user: ENV["HOMEBREW_BINTRAY_USER"], key: ENV["HOMEBREW_BINTRAY_KEY"] }      if bintray_creds[:user] && bintray_creds[:key]        changed_formulae_names.each do |name|          f = Formula[name] @@ -272,7 +272,7 @@ module Homebrew          published << f.full_name        end      else -      opoo "You must set BINTRAY_USER and BINTRAY_KEY to add or update bottles on Bintray!" +      opoo "You must set HOMEBREW_BINTRAY_USER and HOMEBREW_BINTRAY_KEY to add or update bottles on Bintray!"      end      published    end  | 
