chore: add deepcode ignore comment for IndirectCommandInjection in execSync call

This commit is contained in:
q9i 2024-03-03 18:43:24 -08:00 committed by Ananth Venkatesh
parent 180082be4b
commit b342595da6

View file

@ -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) {