Software Bill of Materials
A Software Bill of Materials (SBOM) lists every third-party package in OpenAct, with its version and license. MarketGrowth uses it to prove that the license map in Licensing is true, and to find a problem before a customer does.
Make the SBOM
npm run sbomThe command reads package-lock.json and www/package-lock.json. It needs no network and no install. It writes sbom/openact.cdx.json in the CycloneDX 1.5 format. Most security and legal tools read this format. The sbom/ folder is not in Git. MarketGrowth attaches the file to each release.
Each component has a name, a version, a package URL, a hash, a license expression, and a scope:
| Scope | Meaning |
|---|---|
required | A production dependency. It ships in the Worker or the web app. |
optional | A development or optional dependency. It does not ship. |
Check the licenses
npm run sbom -- --check
npm run sbom -- --summary--check fails when a production dependency has a license that the policy does not allow. npm test runs the same check, so a pull request cannot add a bad license by mistake.
License policy for dependencies
| Class | Licenses | Rule |
|---|---|---|
| Allowed | MIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD, Apache-2.0, MPL-2.0, CC0-1.0, BlueOak-1.0.0, Unlicense, Zlib | Use without review |
| Review first | LGPL, CC-BY | Allowed only as a development or optional dependency, or after a legal review. Never bundle it in the Worker or the web app. |
| Denied | GPL, AGPL, SSPL, BUSL, Commons Clause, Elastic License and similar | Never in a production dependency. These licenses can force MarketGrowth to share proprietary code. |
| Unknown | No license field | Treated as denied until you find the license |
For an expression such as MIT OR Apache-2.0, one allowed side is enough. For MIT AND LGPL-3.0-or-later, every side must be allowed.
Add a dependency
- Read AGENTS.md rule 6. A new runtime dependency needs a reason in the pull request.
- Check its license in the table above.
- Run
npm run sbom -- --check. - If the package ships files from another project, such as fonts or images, add a line for it in
NOTICE.
What the SBOM shows today
- The only copyleft packages are the optional
sharp-libvipsimage libraries (LGPL-3.0-or-later). They are optional development dependencies of the website build. They do not ship in a deploy. - The MPL 2.0 packages are used as is. MPL 2.0 asks you to share changes to its own files. OpenAct does not change them.
Release checklist
- Run
npm run sbom -- --check. - Run
npm run sbomand attachsbom/openact.cdx.jsonto the release. - Compare
--summarywith the last release. Look at each new license. - Update
NOTICEfor new third-party code that ships.