STARDUSTLC666/dsh-code-security ↗★ 2
dsh-code-security
DSH 代码安全审查插件:提供密钥检测、Git 差异审查、SARIF 导出等九大安全扫描工具。
AI 分析
核心用途是在开发阶段预防代码缺陷与敏感信息泄露。适合对代码安全有严格要求的开发者,在提交代码前让 AI 进行确定性规则过滤与漏洞扫描。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:STARDUSTLC666/dsh-code-security說明文件
閱讀完整 README ↗使用
secure_scan { target: src }
secure_diff { base: HEAD }
secure_fix_verify { target: src }
secure_baseline { reason: 历史遗留 }
secure_deps { target: . }
策略示例(.code-security.json):
{
"version": 1,
"exclude": ["vendor/**", "generated/**"],
"ignore": [{ "ruleId": "SEC-206", "file": "test/**", "reason": "非安全敏感" }],
"failOn": "high"
}