Endor Labs License Compliance
Analyze dependency licenses for compliance risks and compatibility.
License Categories
| Category |
Licenses |
Risk |
| Permissive |
MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Unlicense, CC0-1.0 |
Low |
| Weak Copyleft |
LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-2.0, CDDL-1.0 |
Medium |
| Strong Copyleft |
GPL-2.0, GPL-3.0, AGPL-3.0, SSPL, OSL-3.0 |
High |
| Unknown/None |
No license, custom, proprietary, UNLICENSED |
High |
Workflow
Step 1: Get License Findings
Use scan MCP tool with scan_types: ["dependencies"], scan_options: { "quick_scan": true }. Retrieve details via get_resource (resource_type: Finding).
CLI fallback:
npx -y endorctl api list --resource Finding -n $ENDOR_NAMESPACE --filter "spec.finding_categories contains FINDING_CATEGORY_LICENSE_RISK" 2>/dev/null
For CLI field paths and parsing gotchas, read references/cli-parsing.md.
Step 2: Analyze Manifest Files
Read project manifests (package.json, go.mod, etc.) to build a complete license inventory.
Step 3: Present Results
## License Compliance Report
**Project:** {name} | **Dependencies Analyzed:** {count}
### License Summary
| Category | Count | Risk |
|----------|-------|------|
| Permissive (MIT, Apache, BSD) | {n} | Low |
| Weak Copyleft (LGPL, MPL) | {n} | Medium |
| Strong Copyleft (GPL, AGPL) | {n} | High |
| Unknown/No License | {n} | High |
### License Risks
| # | Package | License | Risk | Issue |
|---|---------|---------|------|-------|
| 1 | {pkg} | GPL-3.0 | High | Copyleft - may require open-sourcing |
| 2 | {pkg} | AGPL-3.0 | Critical | Network copyleft - affects SaaS |
For each high-risk finding, provide:
- Implications for proprietary vs. open-source projects
- Permissive-licensed alternatives
- Options: replace, isolate, accept copyleft, request exception
### Full License Inventory
| Package | License | Category | Risk |
|---------|---------|----------|------|
### Next Steps
1. `/endor-policy` — Enforce license rules
2. `/endor-scan` — Full security analysis
3. `/endor-cicd` — Add license checks to CI/CD
Compatibility Matrix
Commercial/Proprietary Projects
| License |
Compatible |
Action |
| MIT, Apache, BSD |
Yes |
Allow |
| LGPL |
Review |
Check linking method |
| GPL, AGPL |
No |
Block or replace |
| Unknown |
No |
Block until resolved |
Open Source (MIT/Apache) Projects
| License |
Compatible |
Action |
| MIT, Apache, BSD, LGPL |
Yes |
Allow |
| GPL |
Partial |
May affect project license |
| AGPL |
No |
Block or replace |
For data source policy, read references/data-sources.md.
Error Handling
| Error |
Action |
| No license findings |
No scan run — suggest /endor-scan |
| Auth error |
Suggest /endor-setup |
1---2name: endor-license3description: >4 Analyze dependency license compliance and identify license risks. Use when the user5 says "check licenses", "license compliance", "any GPL dependencies", "copyleft risk",6 "endor license", or wants to know if dependencies are compatible with their project7 license. Flags copyleft (GPL, AGPL), unknown, and no-license packages. Do NOT use8 for vulnerability scanning (/endor-sca) or policy enforcement (/endor-policy).9metadata:10 source: https://skillmd.com/skills/endorlabs/endor-license11---1213# Endor Labs License Compliance1415Analyze dependency licenses for compliance risks and compatibility.1617## License Categories1819| Category | Licenses | Risk |20|----------|----------|------|21| Permissive | MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, Unlicense, CC0-1.0 | Low |22| Weak Copyleft | LGPL-2.1, LGPL-3.0, MPL-2.0, EPL-2.0, CDDL-1.0 | Medium |23| Strong Copyleft | GPL-2.0, GPL-3.0, AGPL-3.0, SSPL, OSL-3.0 | High |24| Unknown/None | No license, custom, proprietary, UNLICENSED | High |2526## Workflow2728### Step 1: Get License Findings2930Use `scan` MCP tool with `scan_types: ["dependencies"]`, `scan_options: { "quick_scan": true }`. Retrieve details via `get_resource` (resource_type: `Finding`).3132CLI fallback:33```bash34npx -y endorctl api list --resource Finding -n $ENDOR_NAMESPACE --filter "spec.finding_categories contains FINDING_CATEGORY_LICENSE_RISK" 2>/dev/null35```3637For CLI field paths and parsing gotchas, read references/cli-parsing.md.3839### Step 2: Analyze Manifest Files4041Read project manifests (package.json, go.mod, etc.) to build a complete license inventory.4243### Step 3: Present Results4445```markdown46## License Compliance Report4748**Project:** {name} | **Dependencies Analyzed:** {count}4950### License Summary5152| Category | Count | Risk |53|----------|-------|------|54| Permissive (MIT, Apache, BSD) | {n} | Low |55| Weak Copyleft (LGPL, MPL) | {n} | Medium |56| Strong Copyleft (GPL, AGPL) | {n} | High |57| Unknown/No License | {n} | High |5859### License Risks6061| # | Package | License | Risk | Issue |62|---|---------|---------|------|-------|63| 1 | {pkg} | GPL-3.0 | High | Copyleft - may require open-sourcing |64| 2 | {pkg} | AGPL-3.0 | Critical | Network copyleft - affects SaaS |6566For each high-risk finding, provide:67- Implications for proprietary vs. open-source projects68- Permissive-licensed alternatives69- Options: replace, isolate, accept copyleft, request exception7071### Full License Inventory7273| Package | License | Category | Risk |74|---------|---------|----------|------|7576### Next Steps77781. `/endor-policy` — Enforce license rules792. `/endor-scan` — Full security analysis803. `/endor-cicd` — Add license checks to CI/CD81```8283## Compatibility Matrix8485### Commercial/Proprietary Projects8687| License | Compatible | Action |88|---------|-----------|--------|89| MIT, Apache, BSD | Yes | Allow |90| LGPL | Review | Check linking method |91| GPL, AGPL | No | Block or replace |92| Unknown | No | Block until resolved |9394### Open Source (MIT/Apache) Projects9596| License | Compatible | Action |97|---------|-----------|--------|98| MIT, Apache, BSD, LGPL | Yes | Allow |99| GPL | Partial | May affect project license |100| AGPL | No | Block or replace |101102For data source policy, read references/data-sources.md.103104## Error Handling105106| Error | Action |107|-------|--------|108| No license findings | No scan run — suggest `/endor-scan` |109| Auth error | Suggest `/endor-setup` |