2 ms·
This is a poor hack that will backfire for someone. The CI process set up a certain environment for a reason. It purged some variables, and possibly altered oth
by kazinator 4y ago
This is a poor hack that will backfire for someone. The CI process set up a certain environment for a reason. It purged some variables, and possibly altered others.
I'm likely guessing right that if, for instance, you take the PATH from /proc/pid/1 and install that as your PATH, your CI process may run into trouble, like not being able to find needed utilities.
That you need superuser privileges to get at these variables should be a red flag.
- theamk 4y agoThey are not touching original CI process, they are only modifying their own SSH session. And they want to run CI commands from manual SSH process, so taking PATH (and everything else) from the original CI process is exactly what they want -- this is all part of the game for SSH process to be a real "CI" runner.