ci: add dependency license-check workflow#10
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:checknpm script — runslicense-checker-rseidelsohn@5.0.1(viapnpm dlx, so no lockfile change) driven by the txt file:--production --excludePrivatePackages --onlyAllow..github/workflows/license-check.yml— runspnpm run license:checkon push / pull_request.Why
Mirrors the
backendsubmodule'spip-licenses-based license gate, giving every d-party submodule the same license-compliance check. Allow-list is externalized to a txt file matchinglicense-whitelist-python.txt.Verification
pnpm run license:checkexits 0 on the current dependency tree.🤖 Generated with Claude Code