dsh-git-credentials
github.com/revive/dsh-git-credentials
v0.5.0
市场与管理
发起网络请求写入文件
Out-of-tree dsh plugin: GitLab, GitHub, Gitee, Gitea, and Bitbucket tokens stay out of the model context, stored encrypted (AES-256-GCM) in a plugin-owned file; the model calls forge API tools on demand, and the web settings page manages sites and tokens.
该插件尚未翻译,显示作者原文。
deepseek-harnessdshdsh-plugincordisgitlabgithubgiteegitea
检测报告
有一定能力。命中了若干能力模式,大多是插件正常工作时会用到的。
2需留意4一般18未命中
高关注需留意一般
能力清单
- 发起网络请求
network需留意44 处命中lib/client.js:18const response = await fetch(path);lib/client.js:24const response = await fetch(path, {lib/index.js:315response = await fetch(url, {lib/index.js:335response = await fetch(url, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 写入文件
writes-files需留意8 处命中lib/index.js:2288writeFileSync(tmp, JSON.stringify(file), { mode: 384 });lib/index.js:2289renameSync(tmp, this.paths.dataPath);lib/index.js:2305mkdirSync(dirname(this.paths.keyPath), {lib/index.js:2309writeFileSync(this.paths.keyPath, key, { mode: 384 });- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 接触凭据或密钥
credentials一般135 处命中lib/client.js:2id: "dsh-git-credentials",lib/client.js:121* @module dsh-git-credentials/client/panel-csslib/client.js:171* The Settings → Git Credentials management panel: add, edit, and delete siteslib/client.js:173* one token). Every write goes to the plugin's own `/git-credentials-admin/*`- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般24 处命中lib/index.js:90async readFile(options) {lib/index.js:505async readFile(options) {lib/index.js:953async readFile(options) {lib/index.js:1418async readFile(options) {- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般2 处命中lib/index.js:2219const home = process.env.DSH_HOME ?? join(homedir(), ".dsh");src/store.ts:61const home = process.env.DSH_HOME ?? join(homedir(), '.dsh')- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般1 处命中README.zh-CN.md:166const { evaluatePluginCompatibility, pluginCompatibilityWarning } = await import('$DSH_REPO/packages/boot/app-boot/lib/i…- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 发起网络请求 | network | 需留意 | 44 |
| 写入文件 | writes-files | 需留意 | 8 |
| 接触凭据或密钥 | credentials | 一般 | 135 |
| 读取文件 | reads-files | 一般 | 24 |
| 读取环境变量 | reads-env | 一般 | 2 |
| 动态加载模块 | dynamic-import | 一般 | 1 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 20 个文件,扫描于 2026-10-15。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)