feat: add --check-licenses flag for copyleft and unknown license detection - #1059
Merged
Conversation
…ense/Relationship/Message
… set, even on zero findings
…terminal renderer
sonukapoor
force-pushed
the
feature/license-scanning
branch
from
August 29, 2026 15:20
7d5af2e to
93f2ad4
Compare
This was referenced Aug 29, 2026
Merged
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.
Adds
--check-licensesas an opt-in flag that detects copyleft (LC001) and unknown (LC002) licenses across a project's dependency tree, surfaced inline with the CVE scan in the same pass.LC001 flags copyleft licenses (GPL-2.0/3.0, AGPL-3.0, LGPL-2.x/3.0, EUPL, OSL, CDDL, CPL, EPL). LC002 flags dependencies with no declared license. npm gets the full tree via lockfile metadata; pnpm/Yarn/Bun scan direct dependencies only via packument fetch (transitive license data is not available without install). Findings are informational - they appear in the output but do not affect exit code or
--fail-on.Surfaces in terminal (compact and verbose), JSON (
licenseFindings), SARIF, single-folder HTML report, and multi-folder HTML report. The GitHub Action gains acheck-licensesinput (default"false") following the same pattern ascheck-overridesandcheck-maintenance.Closes #1058