Commands are constructed to be run on the runners (both github and self hosted runners) using string concatenation, allowing potential command injection if paths contain special characters.
I would suggest using exec.exec() with array arguments instead of concatenated command strings.