ChenYiming-aaa/dsh-github ↗★ 1
dsh-github
GitHub 集成插件 for DeepSeek Harness:一次认证(GITHUB_TOKEN 或 OAuth Device Flow)后模型可直接调用 GitHub REST API 完成建仓、推送、提 PR、管 issue、搜索等 45 个工具;常规读写直接放行,删除/force push/合并 PR/关 issue 等危险操作保留审批门;token 存于 DSH credentials 服务,不落日志。 / GitHub integration plugin for DeepSeek Harness: authenticate once (PAT or OAuth device flow), then the model drives 45 github_* tools over the GitHub REST API. Routine reads/writes pass through; destructive operations (delete, force push, merge PR, close issue) keep an approval gate. Tokens live in the DSH credentials service and never appear in logs.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ChenYiming-aaa/dsh-github说明文档
阅读完整 README ↗2. 配置认证(二选一,均持久生效)
方式 A — Personal Access Token(推荐先试这个)
## 配置项
| 配置 | 默认 | 说明 |
|---|---|---|
| `tokenRef` | `GITHUB_TOKEN` | PAT 凭据引用名(env / credentials 键名) |
| `oauthClientId` | — | GitHub OAuth App Client ID(Device Flow) |
| `oauthClientSecret` | — | Client Secret(直接内联,不推荐) |
| `oauthClientSecretRef` | `GITHUB_OAUTH_CLIENT_SECRET` | Client Secret 凭据引用(推荐) |
| `oauthScope` | `repo,read:org,user` | Device Flow 申请的 scope |
| `approvalGate` | `true` | 危险操作审批门开关 |
| `timeoutMs` | `30000` | GitHub 请求超时 |