Pass system environment variables to Python scripts
Problem
The environment made available to Python auth scripts embedded into the API Security configuration do not contain the system environment variables passed to the analyzer from the CI runner. This makes it difficult to use a CI variable value in the these scripts.
Support issue: https://gitlab.com/gitlab-com/sec-sub-department/section-sec-request-for-help/-/issues/257+s
Implementation plan
Merge the System.Environment.GetEnvironmentVariables()
dictionary into the environment passed to the Python script in PythonService.py
.