dsh-git-push

版本 3.2.0发布 2026-11-19仓库 EIGHTfs/dsh-git-push
3/4装得上 · 启动通过

DSH 的 git 提交推送插件:提交、推送、克隆、账号校验、仓库扫描与 npm 发布,一个工具搞定。

开发与运行时周下载 1,938peer 2MIT安装时执行脚本
pnpm add dsh-git-push

安装前须知

Node 要求
>=18.0.0
package.json engines
peer 依赖
2 个
由宿主提供,不随包安装
宿主服务
无需额外服务
装完由真宿主启动一次
入口 / 补丁
lib/index.js
bundle 已声明 · patch 随包

四段检测

逐层记录
收录门槛通过
manifest 是否声明 DSH 依赖或 dsh.bundle
离线审查未通过
静态结构包内清单、补丁文件与入口声明是否完整
无 high / critical 命中
未通过
配置组合装入一次性 DSH_HOME 后配置树能否合并通过
源码审查静态阅读源码,检查危险调用与数据外发
计数单位 finding,非包数。
通过
真机安装通过
真机执行 pnpm 安装,退出码为 0 且 node_modules 生成
实测宿主版本 0.2.2-rc.5
加载实测通过
安装完成后由真实宿主启动一次,检查入口是否激活

检测结论明细

共 11 次命中
收录判定1 条规则 · 1 次命中
发布者与仓库所有者不同l0-author-repo-differs
静态结构6 条规则 · 10 次命中
读取凭据/密钥文件路径×5credential-path-read
lib/npm/publish.js:118requires login
启动子进程child-process-spawn
lib/cli/commands-account.mjs:192url = execFileSync('git', ['-C', repoPath, 'remote', 'get-url', 'origin'], { encoding: 'utf8' }).trim();
拼接模块名再加载dynamic-require-constructed
scripts/scan-repos.mjs:55({ credentialsDir } = await import(`${REPO_ROOT}/lib/git/credentials.js`));
遍历目录后批量改写mass-file-overwrite
lib/git/clone-download.js:305const entries = await readdir(dir);
代码中存在外部 URLremote-url-reference
lib/app/inject-text.js:128http://${detectHostIp( https://registry.npmjs.org/ http://localhost https://registry.npmjs.org/) https://gh-proxy.com/
提到凭据路径但没有读动作sensitive-path-reference
lib/npm/install.js:41const file = join(dir, '.npmrc');

依赖结构

2 项
@deepseek-ai/dsh-toolspeer由宿主提供
@deepseek-ai/schemasterypeer由宿主提供