dsh-github-ops
github.com/GooDAnDReaDY/dsh-github-ops
v0.6.2
工具与效率
可执行外部程序写入文件发起网络请求
面向 DeepSeek Harness 的高级 GitHub 操作、发布、CI 运行、密钥与净化镜像套件
作者原文(英文)
GitHub operations for DeepSeek Harness: releases, tags, a guarded generic API pass-through, workflow runs, secrets and sanitized mirror publication.
中文简介由 DeepSeek 模型翻译,仅供参考。
dshdsh-plugindeepseek-harnessgithubreleasestagsmirrorci
检测报告
关注度高。命中了不少能力模式,其中可能有需要留意的。逐条看下面的清单。
1高关注2需留意4一般17未命中
高关注需留意一般
能力清单
- 可执行外部程序
spawns-processes高关注3 处命中lib/index.js:37import { execFile } from 'node:child_process'lib/tools/release-preflight.js:8import { execFile as defaultExecFile } from 'node:child_process'lib/updater.js:6import { spawn } from 'node:child_process'- 看它调用哪些程序。调用本机已有的工具是常见做法。
- 写入文件
writes-files需留意3 处命中lib/auth-device.js:124await fs.mkdir(dirname(path), { recursive: true })lib/auth-device.js:126await fs.writeFile(path, `${JSON.stringify(record, null, 2)}\n`, { mode: 0o600 })lib/scm-write.js:268writeFileSync(fullPath, resolved, 'utf8')- 看写入位置。写自己的配置目录是正常的,写系统目录不是。
- 发起网络请求
network需留意2 处命中lib/client.js:28return fetch(url, signal ? { signal, ...options } : options)lib/updater.js:154const response = await fetch(`${reg}/${encodeURIComponent(packageName)}/latest`, {- 看请求发往哪些域名。发往作者自己的后端是常见做法。
- 接触凭据或密钥
credentials一般140 处命中lib/auth-device.js:7// The granted value is written to this plugin's own file with mode 0600 (the DSH credentialslib/auth-device.js:20export const ACCESS_TOKEN_URL = 'https://github.com/login/oauth/access_token'lib/auth-device.js:78clientSecret,lib/auth-device.js:93if (clientSecret) body.client_secret = clientSecret- 看它读取哪些凭据、发往哪里。用于登录自己的服务是正常的。
- 读取文件
reads-files一般27 处命中lib/auth-device.js:134const text = await fs.readFile(path, 'utf8')lib/tools/releases.js:196const fileBuffer = await fs.readFile(realTarget)lib/routes.js:137if (!existsSync(requested) || !statSync(requested).isDirectory()) {lib/routes.js:157if (!existsSync(wanted) || !statSync(wanted).isDirectory()) {- 读文件是绝大多数插件的正常工作方式,本身不构成顾虑。
- 读取环境变量
reads-env一般8 处命中lib/auth-device.js:23export function accessFilePath(env = process.env) {lib/auth.js:27* @param env - environment map (defaults to process.env)lib/auth.js:31export async function resolveAccess({ credentials, tokenEnv, tokenSource = 'auto', env = process.env, runGh, runFile } =…lib/index.js:54env: { ...process.env, ...(env || {}) },- 环境变量里常混有密钥。看它是否把整个 env 都读走。
- 动态加载模块
dynamic-import一般4 处命中lib/tools/mirror.js:165const fs = await import('node:fs/promises')lib/tools/releases.js:157const fs = await import('node:fs/promises')lib/tools/releases.js:158const path = await import('node:path')lib/tools/repo-settings.js:80nacl = await import('tweetnacl')- 动态导入本身无害,但会让依赖关系难以静态审阅。
逐条扫描明细
| 能力 | 标识 | 关注度 | 命中次数 |
|---|---|---|---|
| 可执行外部程序 | spawns-processes | 高关注 | 3 |
| 写入文件 | writes-files | 需留意 | 3 |
| 发起网络请求 | network | 需留意 | 2 |
| 接触凭据或密钥 | credentials | 一般 | 140 |
| 读取文件 | reads-files | 一般 | 27 |
| 读取环境变量 | reads-env | 一般 | 8 |
| 动态加载模块 | dynamic-import | 一般 | 4 |
这份报告的口径
扫描读的是包里的源码,全程不执行第三方代码。 本次读了 48 个文件,扫描于 2026-10-14。 命中次数只说明源码里出现过这类调用,不说明行为好坏——一个插件读写文件 500 次和 1 次 都会被记为「读取文件」。这是能力清单,不是信任评分,也不是安全结论: 没扫出来的能力可能只是写法没被规则覆盖。
依赖安全公告
已查询这个插件声明的全部依赖,没有匹配到已公开的安全公告。(含 DSH 框架包在内的 @deepseek-ai/* 不作查询——那是运行时自己的问题,不是插件的。)