docs: upload code files and config
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
- id: no-hardcoded-secret
|
||||
severity: error
|
||||
description: 禁止在代码中硬编码 API Key、密码等敏感信息
|
||||
message: 检测到硬编码密钥,请使用环境变量或密钥管理工具
|
||||
languages: [java, javascript, typescript]
|
||||
|
||||
- id: no-sql-injection
|
||||
severity: error
|
||||
description: 禁止使用字符串拼接的方式构造 SQL 语句
|
||||
message: 使用参数化查询(PreparedStatement)替代字符串拼接
|
||||
languages: [java]
|
||||
|
||||
- id: no-command-injection
|
||||
severity: error
|
||||
description: 禁止直接拼接用户输入作为系统命令执行
|
||||
message: 使用安全的 API 替代 Runtime.exec(),避免命令注入
|
||||
languages: [java]
|
||||
Reference in New Issue
Block a user