dsh-license-guard: Open Source License Compliance Check for Dependency Trees and the Project
Before releasing, open-sourcing, or auditing, feely0208's DSH plugin dsh-license-guard (@deepwhale-cn/dsh-license-guard) scans the current directory's dependency tree and project base files, flagging risks such as GPL/AGPL contagion, unknown licenses, missing LICENSE files, and missing license fields in package.json according to 5 rules. It supports installation via `dsh plugin --profile web` or as a pure CLI through npx, can generate HTML reports, and integrates with CI using exit codes. It does not verify the authenticity of license declarations, nor does it cover non-SPDX custom licenses such as SSPL and BUSL.
Read Moredsh-license-guard: Dependency License Compliance Scanning
`dsh-license-guard` is a DeepSeek Harness plugin designed to address dependency license compliance issues. It scans `node_modules`, normalizes licenses to the SPDX format, and classifies them by category. Users can run a scan to review the license composition or, before publishing, use `license_check` to specify prohibited licenses (such as AGPL-3.0) and block them. The plugin includes a built-in default policy that permits permissive licenses by default and disallows strong copyleft licenses. As a pure Node.js implementation, it performs heuristic screening; legal review and appropriate runtime permissions should be considered.
Read More