Skip to content

Commit 6a1cb08

Browse files
committed
chore(scripts): validate-all 补安全注释说明静态参数无注入面
1 parent 50e5647 commit 6a1cb08

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/validate-all.mjs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ for (const step of steps) {
3838
const r = spawnSync(step.cmd, step.args, {
3939
cwd: join(ROOT, step.cwd),
4040
stdio: 'pipe',
41+
// 命令与参数均为本文件内静态定义(无用户输入),shell 仅用于
42+
// Windows 解析 .cmd 包装(npm/go/python),不存在注入面
4143
shell: process.platform === 'win32',
4244
});
4345
if (r.status === 0) {

0 commit comments

Comments
 (0)