chore: add deepcode ignore comment for IndirectCommandInjection in execSync call
This commit is contained in:
parent
180082be4b
commit
b342595da6
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ const run = (cmd: string): string | Buffer => {
|
|||
try {
|
||||
// sanitize user input before running to prevent arbitrary code execution
|
||||
cmd = shellescape(cmd.split(' '))
|
||||
// deepcode ignore IndirectCommandInjection: fixed in #36
|
||||
const output = execSync(cmd, { stdio: 'pipe' })
|
||||
return output
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue