Dependency License Audit
You'll list every license in a project's dependency tree, flag whatever doesn't fit, and ship the NOTICE file.
About
Your project is MIT, its dependency tree is 400 packages, and you have no idea what's in there. Usually it's fine, but sometimes there's a GPL library in a proprietary product, or a 'no commercial use' line nobody read. Finding out is an afternoon with a free tool, and fixing it can take a month. Do this for your own project or one at work. This isn't legal advice, it's knowing what you ship. What counts is a complete inventory and a NOTICE file.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- One to two weeks
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- On your own
Requirements
-
1
Generate the full dependency tree with licenses using a free tool. Use license-checker for npm, pip-licenses for Python, cargo-license for Rust, or go-licenses for Go. Include the transitive dependencies, not just the direct ones, and export it to a file. Take a screenshot of the tool output with the total count. Photo
-
2
Sort the list by license and find everything that isn't permissive. MIT, BSD, Apache 2.0 and ISC are the common permissive ones. Flag GPL, LGPL, AGPL, SSPL, unknown, 'see LICENSE' and anything custom. Take a screenshot of your sorted table with the flagged rows. Photo
-
3
For each flagged package, read its actual license file and write one line on what it requires. The metadata is wrong often enough to matter, so open the file in the package. LGPL in a dynamically linked library is usually fine, AGPL in a web service usually isn't, and unknown needs an email to the author. Take a screenshot of your findings. Photo
-
4
Resolve each flag by replacing, getting permission, complying, or documenting why it's fine. Most flags resolve as 'fine, and here's why'. Some need a swap to a different library, so do the swap or open the issue. Take a screenshot of the resolution list with every flag closed. Photo
-
5
Write a NOTICE or THIRD_PARTY_LICENSES file and commit it. Apache 2.0 requires it, and it's good practice for the rest. Include the package name, version, license, and copyright line, and the tools above can generate it for you. Take a screenshot of the committed file. Photo
-
6
Add the check to CI so it fails on a new copyleft or unknown license. Most of the tools have an allow-list flag. Fail the build if something outside the list shows up. Take a screenshot of the CI step passing. Photo