dsh-license-guard
Manifest validOpen Source License Compliance Check: Scan the dependency tree to identify risks such as GPL/AGPL copyleft contagion, unknown licenses, and more — run it before release, before open sourcing, and whenever you're under audit.
@deepwhale-cn/dsh-license-guard
关键词:开源许可 · 开源协议 · 许可证合规 · 许可风险 · GPL 传染 · AGPL · 开源合规 · 许可证 Keywords: open source license · license compliance · GPL · AGPL · copyleft · license risk 开源许可合规检查 —— 扫依赖树,找出 GPL/AGPL 传染、许可未知等风险。
发布前、开源前、被审计时跑一遍。退出码可挂 CI。
不装它会怎样
你的产物里混进了一个 GPL 依赖,你没发现,打包发出去了。
半年后客户审计问:「你用了 GPL 代码,为什么没开源?」—— GPL 的义务从「分发」那一刻就触发了,而分发在半年前。
这个检查跑一次几秒钟。
它查什么
| 级别 | 内容 |
|---|---|
| 🔴 高 | GPL / AGPL —— 强传染 |
| 🟡 中 | 许可未知(没写许可证 ≠ 随便用)· 项目缺 LICENSE |
| 🟢 低 | LGPL / MPL / EPL · package.json 缺 license 字段 |
安装
# DSH 插件(推荐)
dsh plugin --profile web add @deepwhale-cn/dsh-license-guard
# 或纯 CLI(不依赖 DSH)
npx @deepwhale-cn/dsh-license-guard
用法
dsh-license-guard # 扫当前目录
dsh-license-guard --demo # 用内置样本看效果
dsh-license-guard --html r.html # 输出 HTML 报告



覆盖范围
5 条规则,覆盖依赖树的许可风险 + 项目基础文件。
不覆盖:专利条款、商标、出口管制、SSPL/BUSL 等非 SPDX 自定义协议。 依赖声明的许可证值可能不准(维护者写错),本工具不校验其真实性。
为什么和其他工具不同
它不只看依赖,也看你自己:项目缺 LICENSE、package.json 缺 license 字段 —— 这两条会让别人(和你自己的下游)无法判断能不能用你的代码。
边界
本插件是一个工具。使用者必须遵守所在地区法律法规,对使用本项目造成的任何后果自行承担责任。
开发
npm install
bash tests/run.sh # 双向验证(正例必须报 + 反例必须不报)
深鲸网安守护系列(共 22 个)
一个插件做一件事。安全问题是链式的 —— 配套用才完整。
国内合规 | 等保对照 · 日志留存 · 备案公示 · 用户同意 · 个人信息权利 · 未成年人保护 · 影响评估 · 数据分类分级 · 算法备案 · 数据出境
AI 与 Agent 治理 | AI 输出信任 · 外部内容信任 · MCP 安全 · Agent 权限
都在 DSH 插件市场(dsh-plugin.org)和 npm 上,dsh plugin --profile web add <包名> 即可安装。
License
MIT © 深鲸 DeepWhale
Comments
Loading…
Similar plugins
Pre-install supply-chain checks for DeepSeek Harness plugins: verify the tarball you are about to install matches the source you read, before any code runs.
★ 0
↓ 164/wk
dsh plugin --profile web add dsh-provenanceby uckkk
项目体检:检查 README/LICENSE/.gitignore/测试/CI/锁文件等最佳实践并返回体检报告
★ 0
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-repo-healthby Web0926
DeepSeek Harness plugin that validates and ranks 3/5 independent coding-agent patches before approval-gated apply.
★ 3
↓ 818/wk
MIT
TypeScript
Aug 25, 2026
dsh plugin --profile web add dsh-llm-verifierby 863683348
Verification toolkit for DSH agents: evidence-based claim checking against workspace files with line citations, config validation (JSON/YAML), and read-only URL/npm/GitHub submission-readiness probes.
★ 0
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add dsh-plugin-verifyby uckkk
依赖安全审计:OSV.dev 漏洞扫描 + npm 过期依赖检测,返回严重级/修复版本/升级幅度
★ 0
↓ 35/wk
MIT
JavaScript
Aug 19, 2026
dsh plugin --profile web add dsh-dependency-auditby dongsheng123132
Evidence-only DSH plugin for license obligation delivery closure
★ 0
MIT
JavaScript
Sep 7, 2026
dsh plugin --profile web add dsh-license-obligation-proof