diff options
author | Stan Hu <stanhu@gmail.com> | 2018-06-09 07:41:42 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-06-09 07:41:42 +0300 |
commit | 032b8cb1cc36046fb48bf7fef2ece1aa2ad9b5a1 (patch) | |
tree | 19df26ad07cf230bc2183273d74316dcb28dabb8 /qa/spec/support | |
parent | c7dfbb9989195efa4af2d0baa5216fcdb3228e8e (diff) |
Prevent ENV from leaking variables in CI output
Diffstat (limited to 'qa/spec/support')
-rw-r--r-- | qa/spec/support/stub_env.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/spec/support/stub_env.rb b/qa/spec/support/stub_env.rb index bc8f3a5e22e..044804cd599 100644 --- a/qa/spec/support/stub_env.rb +++ b/qa/spec/support/stub_env.rb @@ -32,6 +32,8 @@ module Support allow(ENV).to receive(:[]).and_call_original allow(ENV).to receive(:key?).and_call_original allow(ENV).to receive(:fetch).and_call_original + # Prevent secrets from leaking in CI + allow(ENV).to receive(:inspect).and_return([]) add_stubbed_value(STUBBED_KEY, true) end end |