Scan Report
25 /100
github-code-analyzer
使用DeepSeek AI分析GitHub仓库代码质量
GitHub代码分析工具,核心功能正常但存在硬编码API Key风险
Safe to install
将API Key从代码中移除,改为环境变量或配置注入;添加模型minimax的实际API调用实现
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Medium | 硬编码API凭证 Credential Theft | index.js:7 |
| Low | 模型配置与实现不一致 Doc Mismatch | index.js:11 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | WRITE | WRITE | ✓ Aligned | index.js:53-54 使用/tmp临时目录克隆和读取代码 |
| Network | READ | READ | ✓ Aligned | index.js:127 调用Ark API进行AI分析 |
| Shell | NONE | WRITE | ✓ Aligned | index.js:52 exec执行git clone,属于声明功能内的必要操作 |
1 High 2 findings
High API Key 疑似硬编码凭证
API_KEY = "3ee94c45-6dad-4680-827c-eb3017420dff" index.js:7 Medium External URL 外部 URL
https://ark.cn-beijing.volces.com/api/v3/chat/completions index.js:134 File Tree
2 files · 5.9 KB · 210 lines JavaScript 1f · 147L
Markdown 1f · 63L
├─
index.js
JavaScript
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
axios | * | npm | No | 无版本锁定,建议锁定小版本 |
Security Positives
✓ 功能实现与SKILL.md描述基本一致,无明显阴影功能
✓ 使用/tmp临时目录,清理逻辑完整
✓ Git clone操作有timeout保护(60000ms)
✓ 文件遍历有深度和数量限制,防止资源耗尽
✓ API调用有错误处理和fallback机制