D

dsh-github

github.com/PerryLink/dsh-github

v0.7.20 工具与效率 可执行外部程序以 shell 执行命令写入文件

把 GitHub 的 PR、审查、issue 与 CI 接入 DeepSeek Harness —— 每个写操作都经人类审批,token 永不落日志。

作者原文(英文)

Official-grade GitHub CI for DeepSeek Harness: composite action (review PRs / fix CI / report), polling PR review bot with idempotent inline comments, a status-check gate, and approval-gated PR/issue/repo/file tools

中文简介由 DeepSeek 模型翻译,仅供参考。

dshdsh-plugindeepseek-harnessgithubgithub-actionspull-requestcode-reviewci
分类
tools
发布
2026-10-10
版本
v0.7.20

检测报告

关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
2高关注4需留意4一般14未命中
高关注需留意一般

能力清单

  • 可执行外部程序spawns-processes高关注5 处命中
    • lib/credential.js:12import { execFile } from 'node:child_process';
    • lib/git.js:8import { execFile } from 'node:child_process';
    • scripts/local-test.mjs:25import { spawnSync } from 'node:child_process'
    • scripts/prepare.mjs:9import { spawnSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注2 处命中
    • scripts/local-test.mjs:133shell: true,
    • scripts/verify-artifacts.mjs:24execFileSync(process.execPath, ['--check', path.join(root, 'lib/index.js')], { stdio: 'inherit' })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意17 处命中
    • lib/ci/pipeline.js:104mkdirSync(dir, { recursive: true });
    • lib/ci/pipeline.js:107writeFileSync(jsonPath, JSON.stringify({ schemaVersion: 1, ...result, files: { json: jsonPath, markdown: markdownPath } …
    • lib/ci/pipeline.js:108writeFileSync(markdownPath, formatMarkdownReport(result, { blocking: state.config.ci.blocking, checkName: state.config.c…
    • lib/ci/pipeline.js:111appendFileSync(outputFile, `verdict=${result.verdict}\n`
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意4 处命中
    • lib/github.js:239fetchImpl: fetchImpl ?? globalThis.fetch.bind(globalThis),
    • lib/tools.js:59/** Stable code for a failed supplementary section fetch. */
    • lib/tools.js:192fields: { type: 'array', items: { type: 'string', enum: [...REVIEW_FIELDS] }, description: 'Sections to fetch. Omit for …
    • README-es.md:255- **Sin mutación global.** No parchea prototipos, ni reescribe `process.env`, ni reemplaza el dispatcher global de fetch…
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 运行时改写自身配置modifies-own-manifest需留意1 处命中
    • scripts/local-test.mjs:164writeFileSync(join(profileDir, 'package.json'), '{"private": true}\n')
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • R013 清单可疑manifest-obfuscation需留意1 处命中
    • 安装脚本: prepare
    • 清单被刻意写乱时,加载行为会难以预测。看原文而不是看渲染结果。
  • 接触凭据或密钥credentials一般147 处命中
    • lib/client.js:5* the settings document: it is written through the credentials domain,
    • lib/client.js:16* settings document; the credential is written through the credentials
    • lib/client.js:48/** Credential reference the provider resolves when the configuration names none. */
    • lib/client.js:55tokenHint: 'Stored in the credentials file, not here. Applied immediately; leave blank to keep the current token.',
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取环境变量reads-env一般27 处命中
    • lib/credential.js:56const value = process.env[tokenRef];
    • lib/ci/pipeline.js:94const fromEnv = process.env.DSH_GITHUB_CI_OUTPUT_DIR?.trim();
    • lib/ci/pipeline.js:109const outputFile = process.env.GITHUB_OUTPUT;
    • lib/state.js:32isCiDriver: process.env.DSH_GITHUB_CI_DRIVER === '1',
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 读取文件reads-files一般18 处命中
    • scripts/action-post.mjs:34result = JSON.parse(readFileSync(resultPath, 'utf8'))
    • scripts/check-readmes.mjs:40const text = readFileSync(join(root, 'src', 'tools.ts'), 'utf8')
    • scripts/check-readmes.mjs:48const text = readFileSync(join(root, 'src', 'config.ts'), 'utf8')
    • scripts/check-readmes.mjs:59const pkg = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'))
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 动态加载模块dynamic-import一般16 处命中
    • scripts/verify-artifacts.mjs:26const index = await import(pathToFileURL(path.join(root, 'lib/index.js')).href)
    • lib/ci/tool.d.ts:3export declare function ciRunTool(state: GithubState): import("@deepseek-ai/dsh-tools").ToolDefinition;
    • lib/tools.d.ts:69export declare function prCreateTool(state: GithubState): import("@deepseek-ai/dsh-tools").ToolDefinition;
    • lib/tools.d.ts:71export declare function ghReviewTool(state: GithubState): import("@deepseek-ai/dsh-tools").ToolDefinition;
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注5
以 shell 执行命令shell-exec高关注2
写入文件writes-files需留意17
发起网络请求network需留意4
运行时改写自身配置modifies-own-manifest需留意1
R013 清单可疑manifest-obfuscation需留意1
接触凭据或密钥credentials一般147
读取环境变量reads-env一般27
读取文件reads-files一般18
动态加载模块dynamic-import一般16

这份报告的口径

扫描读的是包里的源码,全程不执行第三方代码。 本次读了 56 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。

依赖安全公告

已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)

← 返回全部插件