Merge Outstanding Security MRs
This MR merges https://gitlab.com/gitlab-org/security/gitlab-runner/-/merge_requests/71+ into this repo. From the original MR:
What does this MR do?
- Ensures that
GITLAB_ENVfile is removed at the start and end of jobs. - For
bash/shshells, no longer usessourceto exportGITLAB_ENVvariables. This is safer, assourcecould execute scripts inside theGITLAB_ENVfile. We now read each line of the file andexportit.
Why was this MR needed?
https://gitlab.com/gitlab-org/gitlab-runner/-/issues/36991#note_1681880344
What's the best way to test this MR?
Integration test has been updated to detect the problem. It tested against previous version should error.
What are the relevant issue numbers?
Closes https://gitlab.com/gitlab-org/gitlab-runner/-/issues/36991
Edited by Axel von Bertoldi