Skip to content

feat: add --check-licenses flag for copyleft and unknown license detection - #1059

Merged
sonukapoor merged 20 commits into
mainfrom
feature/license-scanning
Aug 29, 2026
Merged

feat: add --check-licenses flag for copyleft and unknown license detection#1059
sonukapoor merged 20 commits into
mainfrom
feature/license-scanning

Conversation

@sonukapoor

Copy link
Copy Markdown
Collaborator

Adds --check-licenses as 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 a check-licenses input (default "false") following the same pattern as check-overrides and check-maintenance.

Closes #1058

@sonukapoor
sonukapoor force-pushed the feature/license-scanning branch from 7d5af2e to 93f2ad4 Compare August 29, 2026 15:20
@sonukapoor
sonukapoor merged commit 4650716 into main Aug 29, 2026
9 checks passed
@sonukapoor
sonukapoor deleted the feature/license-scanning branch August 29, 2026 15:27
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.

feat: add --check-licenses flag for copyleft and unknown license detection

1 participant