Skip to content

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 ​

sh
npm run sbom

The 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:

ScopeMeaning
requiredA production dependency. It ships in the Worker or the web app.
optionalA development or optional dependency. It does not ship.

Check the licenses ​

sh
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 ​

ClassLicensesRule
AllowedMIT, ISC, BSD-2-Clause, BSD-3-Clause, 0BSD, Apache-2.0, MPL-2.0, CC0-1.0, BlueOak-1.0.0, Unlicense, ZlibUse without review
Review firstLGPL, CC-BYAllowed only as a development or optional dependency, or after a legal review. Never bundle it in the Worker or the web app.
DeniedGPL, AGPL, SSPL, BUSL, Commons Clause, Elastic License and similarNever in a production dependency. These licenses can force MarketGrowth to share proprietary code.
UnknownNo license fieldTreated 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 ​

  1. Read AGENTS.md rule 6. A new runtime dependency needs a reason in the pull request.
  2. Check its license in the table above.
  3. Run npm run sbom -- --check.
  4. 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-libvips image 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 ​

  1. Run npm run sbom -- --check.
  2. Run npm run sbom and attach sbom/openact.cdx.json to the release.
  3. Compare --summary with the last release. Look at each new license.
  4. Update NOTICE for new third-party code that ships.

Open source under the MPL 2.0. Made by MarketGrowth.