diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-06-11 16:59:46 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-06-11 16:59:46 +0300 |
commit | 6d92a7a049bafcc83703ddc68c72d272f38d4b7f (patch) | |
tree | 3be7b0c78658e46076fb37907a84a833a67a39a4 /qa | |
parent | 61ac2462d5870b75afab40413517c39d27aca234 (diff) | |
parent | 032b8cb1cc36046fb48bf7fef2ece1aa2ad9b5a1 (diff) |
Merge branch 'sh-suppress-env-leaks' into 'master'
Prevent ENV from leaking variables in CI output
See merge request gitlab-org/gitlab-ce!19607
Diffstat (limited to 'qa')
-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 |