Scan your whole stack
Are you using dsh-git-forge?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.4
dsh-git-forge was last scanned on 23 Nov 2026 at version 1.2.4. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.2.4 LATEST | 23 Nov 2026 | No rules fired |
| 1.2.3 | 22 Nov 2026 | No rules fired |
| 1.2.2 | 1 Nov 2026 | No rules fired |
| 1.2.1 | 31 Oct 2026 | Not shown |
| 1.2.0 | 9 Oct 2026 | Not shown |
Findings for v1.2.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.2.4; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
这是什么 • 效果 • 安装方式 • 侧栏 • 模型工具 • 数据放在哪 • 安全 • 环境要求 • 开发 • 支持与致谢 • 许可证与作者
DSH Git Forge 是 DeepSeek Harness 的社区插件,在 DSH 官方右侧栏里给你一个 Forge 账号库 + 按项目授权 + 推送策略 的管理面。
它管两件事:
git fetch / git push 由本插件的 credential helper 自动取用对应 token,token 只在宿主侧读,不进模型上下文。git push 与 git push origin 会先解析 remote URL 再判定。SSH 远程与系统 gh auth 不受影响,仍走本机 SSH / gh;本插件只补 DSH agent shell 下的 HTTPS 这一段。
从 npm 安装
# 先停掉正在运行的 DSH(运行中的服务会锁住依赖,装完再起)
dsh plugin --profile <profile> add "dsh-git-forge@1.2.4"
提示:装好后刷新一下浏览器页面,「Git 凭据」从右侧栏的引导页打开——只重启宿主不够,客户端产物是页面加载时取的。
装完怎么用
git fetch / git push,凭据由 helper 自动注入,模型看不到 token侧栏只有一个 Tab,内部三页:
| 页面 | 作用 |
|---|---|
| 项目授权 | 当前项目可用的账号,以及是否 enforcePush |
| 账号库 | 账号增删改、探测 API token;账号按 gitHost 归集,界面给出 github.com / gitee.com / gitlab.com / bitbucket.org 常用选项,自建 Forge 直接填自己的域名 |
| 策略状态 | 当前允许的 gitHost,以及未绑定项目的默认策略 |
| 动作 | 作用 | 参数 |
|---|---|---|
GitForge action=list_accounts |
列出账号库(不含 token) | 无 |
GitForge action=list_project_accounts |
列出某项目已授权的账号 | project_path |
GitForge action=get_policy |
看该项目策略:授权账号、是否 enforcePush、未绑定项目默认 |
project_path |
GitForge action=check_remote |
校验某个 remote URL 是否被允许推送(不推送) | url(必填) |
DSH_GIT_FORGE_PROJECT),不是子仓路径;工作区路径按磁盘实态归一(realpath),Windows 8.3 短名与符号链接折叠到同一 keyenv → cwd 精确匹配 → 向父目录 walk(cwd 在 /workspace 下时上界为 /workspace,否则走到根)GIT_CONFIG_GLOBAL 指向 $DSH_HOME/git-forge/gitconfig;文件第一行 include 回接你的用户级 gitconfig(user.name / user.email / http.proxy 等照常生效),随后一条空 credential.helper 清掉系统级 helper,再挂本插件 helper——系统凭据管理器的弹窗不会卡住无头 shell,用户自己配的 helper 也会被同样清掉$DSH_HOME/git-forge/(目录 0700;0600/0700 权限仅在 POSIX(Linux/macOS)生效,Windows 无等效收紧):
| 文件 | 内容 |
|---|---|
accounts.json |
账号元数据(不含 token) |
secrets.json |
token(0600) |
grants.json |
projectPathKey → accountIds[] 与 enforce / unbound 策略 |
gitconfig |
注入给 agent shell 的 credential helper 配置(不含凭据) |
注意:
accounts.json/secrets.json/grants.json若解析失败,坏文件会被改名保留为<原名>.corrupt-<时间戳>并回退默认值,不会覆盖丢失现场。
tools.guard 中硬拦截,不依赖模型自觉:命令里的 URL、裸 git push、git remote add / set-url 都按授权判定secrets.json;helper 是由 git 拉起的独立进程,按需读取;token 不进模型上下文。secrets.json 疑似泄露请立即轮换 token@deepseek-ai/dsh-client-connection \<= 0.2.2-rc.5)仍调用 connection.requestRejection,401 / 403 按原状态码结束响应;新宿主(>= 0.2.3-alpha.1)已由 WebServer 完成准入,handler 复用传入的 Peer 并要求 principal.kind === 'owner',无 Peer 或非 owner 一律 403time/nice 等未覆盖前缀);这一边界是明示的检测口径,不是放行依据git push 的 remote 解析失败会重试一次,仍失败即拒绝(fail-closed)>= 20npm test # 27 项离线自检(scripts/smoke-test.mjs)
npm run check # 语法 + 自检
npm run build:preview # 重出 docs/ 下的侧栏预览图(需本机 Chrome,CHROME_PATH 可指定)
DSH_PROFILE=desktop bash scripts/sync-to-dsh.sh # 以 link: 方式把本仓库接入 DSH profile(开发用)
目录与「改东西去哪」:
lib/index.js 宿主入口:工具注册、/dsh-git-forge/api 路由、push 拦截、credential helper 配置
lib/client.js 客户端 bundle(已入库;dsh plugin add 不做构建)
lib/shared/ 宿主与客户端共用纯函数:path / git-policy / remote-resolve / credential-select / account-summary
docs/preview/ 预览输入:fixture.json 为虚构数据,panel.html 与 docs/panel-*.png 由 build:preview 生成
scripts/ install.sh · install.ps1 · sync-to-dsh.sh · smoke-test.mjs · git-credential helper
cordis.patch.yml 包内 bundle patch,CLI 据此写入 dsh.profile.bundles
MIT。上游项目与代码作者 @thirsty5034;本仓库的维护与新增部分 © 2026 @OMSociety。
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.