Skip to content

ci: add dependency license-check workflow#10

Merged
Uno-Takashi merged 1 commit into
mainfrom
chore/license-check-ci
Jun 22, 2026
Merged

ci: add dependency license-check workflow#10
Uno-Takashi merged 1 commit into
mainfrom
chore/license-check-ci

Conversation

@Uno-Takashi

Copy link
Copy Markdown
Member

What

Add a License Check CI workflow that fails the build if any production dependency reports a license outside a permissive/weak-copyleft allow-list — blocking GPL/AGPL/SSPL contamination.

  • license-whitelist-node.txt — SPDX allow-list, one id per line (# comments / blank lines ignored). Tailored to this repo's actual production dependencies.
  • license:check npm script — runs license-checker-rseidelsohn@5.0.1 (via pnpm dlx, so no lockfile change) driven by the txt file: --production --excludePrivatePackages --onlyAllow.
  • .github/workflows/license-check.yml — runs pnpm run license:check on push / pull_request.

Why

Mirrors the backend submodule's pip-licenses-based license gate, giving every d-party submodule the same license-compliance check. Allow-list is externalized to a txt file matching license-whitelist-python.txt.

Verification

  • pnpm run license:check exits 0 on the current dependency tree.
  • Removing a needed license from the txt makes it exit 1 (gate works).

🤖 Generated with Claude Code

Add a License Check CI job that fails on any production dependency whose
license is not in the permissive/weak-copyleft allow-list, blocking
GPL/AGPL/SSPL contamination.

- license-whitelist-node.txt: SPDX allow-list (one id per line, # comments)
- license:check script: license-checker-rseidelsohn driven by that file
- .github/workflows/license-check.yml: runs it on push / pull_request

Mirrors the backend submodule's pip-licenses based license-check.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Uno-Takashi Uno-Takashi merged commit 4d28bab into main Jun 22, 2026
3 checks passed
@Uno-Takashi Uno-Takashi deleted the chore/license-check-ci branch June 22, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant