Skip to content

Legal

Caution

This document is not a legal advice. Consult a professional for legal questions.

This document outlines the legal aspects of opentemplate.

Compliance and fixes

REUSE compliance

Repositories created from this template follow REUSE ⧉ framework, meaning:

  • Every file includes an SPDX ⧉ header with license and copyright details.
  • Headers are either language-specific comments or <filename>.license files when comments aren't supported.

Important

Each contributor will be added to the SPDX headers. See SPDX-FileContributor ⧉ for more details.

  • The pre-commit hook automatically adds missing headers (fix-legal in pyproject.toml).
  • check-legal in pyproject.toml ensures compliance and runs after fix-legal.

License compliance

google/osv-scanner ⧉ checks dependency licenses. Allowed licenses (subject to change):

MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, Unlicense, Zlib, OFL-1.1, 0BSD, PSF-2.0

Adjustments

Changing license

  • Run pdm run reuse download <LICENSE-SPDX> and link the /LICENSE.md file to appropriate file in licenses/.
  • Change license in pyproject.toml to the new SPDX identifier.

Modifying license compliance

Important

Adjust project licensing as needed.

To update allowed licenses for osv-scanner:

  • Modify .pre-commit-config.yaml (id: osv-scanner) for local changes.
  • Update .github/workflows/reusable-security-osv-scanner.yml for CI.

Documents

Tip

See GitHub guide ⧉ for more information.

Code Sources

  • pyproject.toml
  • .github/workflows/legal*.yml