Commit 2ac57e18 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'environment_variables' into 'master'

Restrict Environment Variables
parents c02ec5b6 635bb114
...@@ -59,8 +59,8 @@ class GitlabShell ...@@ -59,8 +59,8 @@ class GitlabShell
api.allowed?(@git_cmd, @repo_name, @key_id, '_any') api.allowed?(@git_cmd, @repo_name, @key_id, '_any')
end end
def exec_cmd *args def exec_cmd(*args)
Kernel::exec *args Kernel::exec({'PATH' => ENV['PATH'], 'GL_ID' => ENV['GL_ID']}, *args, unset_env_others: true)
end end
def api def api
......
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