D

dsh-plugin-cicd

github.com/SOH4C4759/dsh-plugin-cicd

v0.5.2 界面与主题 可执行外部程序以 shell 执行命令写入文件

发布台(Release Console)for DeepSeek Harness: a sidebar entry and a full main-panel page that show what each repository has built, what it has released, whether the local checkout is ahead of the release, whether the copy installed in this profile is the publ

该插件尚未翻译,显示作者原文。

dshdsh-plugindeepseek-harnessgithub-actionsreleasecicdgh-cli
分类
ui
发布
2026-10-12
版本
v0.5.2

检测报告

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

能力清单

  • 可执行外部程序spawns-processes高关注3 处命中
    • index.js:67import { execFile, execFileSync, spawn } from 'node:child_process'
    • tests/bump-e2e.mjs:22import { execFileSync } from 'node:child_process'
    • scripts/verify-bundle.mjs:22import { execFileSync } from 'node:child_process'
    • 看它调用哪些程序。调用本机已有的工具是常见做法。
  • 以 shell 执行命令shell-exec高关注3 处命中
    • index.js:316const out = execFileSync(
    • tests/bump-e2e.mjs:44return execFileSync('git', args, {
    • scripts/verify-bundle.mjs:289execFileSync(process.execPath, ['--check', absolute], { stdio: ['ignore', 'ignore', 'pipe'] })
    • 看命令字符串是拼出来的还是写死的。拼接用户输入才是真正的风险。
  • 写入文件writes-files需留意41 处命中
    • index.js:2820writeFileSync(manifest, source, 'utf8')
    • index.js:2827writeFileSync(manifest, rewritten.text, 'utf8')
    • index.js:3136mkdirSync(directory, { recursive: true })
    • index.js:3487if (existsSync(npmrcPath)) writeFileSync(`${npmrcPath}.bak`, existing, 'utf8')
    • 看写入位置。写自己的配置目录是正常的,写系统目录不是。
  • 发起网络请求network需留意7 处命中
    • client.js:1107const response = await fetch(`${BASE}${path}`, {
    • index.js:3250response = await fetch(`http://${authority}/api/dsh-restart/restart`, {
    • index.js:3324const response = await fetch(url, {
    • tests/bilibili-check.mjs:383const response = await fetch(`${base}${path}`, { method: 'POST', headers: { 'content-type': 'application/json' }, body: …
    • 看请求发往哪些域名。发往作者自己的后端是常见做法。
  • 动态执行代码dynamic-code需留意2 处命中
    • tests/client-render.mjs:318vm.createContext(sandbox)
    • tests/client-render.mjs:319vm.runInContext(source, sandbox, { filename: 'client.js' })
    • 看 eval / new Function 的入参来自哪里。常量字符串和用户输入是两回事。
  • 运行时改写自身配置modifies-own-manifest需留意2 处命中
    • tests/bump-e2e.mjs:88writeFileSync(join(work, 'package.json'), manifestFor(version), 'utf8')
    • tests/host-checks.mjs:249const writeManifest = (dir, manifest) => writeFileSync(join(dir, 'package.json'), JSON.stringify(manifest, null, 2), 'ut…
    • 运行时改写自身配置会让下次启动的行为和你看过的源码不一致。
  • 接触凭据或密钥credentials一般292 处命中
    • client.js:7* settings.plugins.tab 「DSH 插件发布台」: the three credentials, one page
    • client.js:53* The three credentials, as segments inside that one page.
    • client.js:68* The pages a first npm credential needs.
    • client.js:77const NPM_TOKEN_DOCS_URL = 'https://docs.npmjs.com/creating-and-viewing-access-tokens'
    • 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
  • 读取文件reads-files一般78 处命中
    • index.js:691if (isAbsolute(candidate) && existsSync(candidate)) return candidate
    • index.js:1085if (localPath === '' || !existsSync(localPath)) return null
    • index.js:1087const parsed = JSON.parse(readFileSync(join(localPath, 'package.json'), 'utf8'))
    • index.js:1218if (!existsSync(localPath)) return { available: false, reason: 'localPath does not exist' }
    • 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
  • 读取环境变量reads-env一般27 处命中
    • index.js:537const home = text(process.env.DSH_HOME) !== '' ? text(process.env.DSH_HOME) : join(process.env.USERPROFILE ?? process.en…
    • index.js:673for (const value of [process.env.DSH_GH_PATH, process.env.DSH_GITHUB_CLI]) {
    • index.js:685join(process.env.LOCALAPPDATA ?? '', 'Programs', 'GitHub CLI', 'gh.exe'),
    • index.js:686join(process.env.ProgramFiles ?? '', 'GitHub CLI', 'gh.exe'),
    • 环境变量里常混有密钥。看它是否把整个 env 都读走。
  • 动态加载模块dynamic-import一般4 处命中
    • tests/bilibili-check.mjs:51const module = await import(pathToFileURL(join(packageRoot, 'index.js')).href)
    • tests/bump-e2e.mjs:31const module = await import(pathToFileURL(join(packageRoot, 'index.js')).href)
    • tests/mount-check.mjs:29const module = await import(pathToFileURL(join(packageRoot, 'index.js')).href)
    • tests/pipeline-check.mjs:41const module = await import(pathToFileURL(join(packageRoot, 'index.js')).href)
    • 动态导入本身无害,但会让依赖关系难以静态审阅。
  • 使用 vm 模块做隔离uses-vm-module一般1 处命中
    • tests/client-render.mjs:24import vm from 'node:vm'
    • 用 node:vm 是在建立隔离,不是在突破它。本身不是顾虑,但值得知道这个插件会执行动态代码。
逐条扫描明细
能力标识关注度命中次数
可执行外部程序spawns-processes高关注3
以 shell 执行命令shell-exec高关注3
写入文件writes-files需留意41
发起网络请求network需留意7
动态执行代码dynamic-code需留意2
运行时改写自身配置modifies-own-manifest需留意2
接触凭据或密钥credentials一般292
读取文件reads-files一般78
读取环境变量reads-env一般27
动态加载模块dynamic-import一般4
使用 vm 模块做隔离uses-vm-module一般1

这份报告的口径

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

依赖安全公告

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

← 返回全部插件