Fix mutation of original command when masking secrets
What does this MR do and why?
On ruby 3, the existing command would be mutated by gsub!
which leads to command execution with all of the secrets set to literal *****
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by George Koltsov