Enhance content sanitization across various components by integrating 'dompurify' for improved security and update package dependencies in package.json and package-lock.json.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m56s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 4m56s
This commit is contained in:
@@ -2,6 +2,8 @@ import { execSync } from 'child_process'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
|
||||
// nosemgrep: javascript.lang.security.detect-child-process.detect-child-process
|
||||
// This is a development-only smoke test script, cmd is hardcoded, not user input
|
||||
function run(cmd) {
|
||||
console.log('> ', cmd)
|
||||
try { const out = execSync(cmd, { stdio: 'pipe' }).toString(); console.log(out); return out } catch (e) { console.error('ERROR:', e.message); return null }
|
||||
|
||||
Reference in New Issue
Block a user