Commit 6d92a7a0 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'sh-suppress-env-leaks' into 'master'

Prevent ENV from leaking variables in CI output

See merge request gitlab-org/gitlab-ce!19607
parents 61ac2462 032b8cb1
...@@ -32,6 +32,8 @@ module Support ...@@ -32,6 +32,8 @@ module Support
allow(ENV).to receive(:[]).and_call_original allow(ENV).to receive(:[]).and_call_original
allow(ENV).to receive(:key?).and_call_original allow(ENV).to receive(:key?).and_call_original
allow(ENV).to receive(:fetch).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) add_stubbed_value(STUBBED_KEY, true)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment