---
title: "Dependency licence policy"
description: "Checks dependency licences against a policy in settings[\"code.licenses\"]: deny and allow lists of SPDX ids or globs, evaluated over SPDX expressions (OR, AND, WITH). Reads licences offline from package-lock.json, composer.lock, installed node_modules and Python virtualenvs. Skipped until a policy is configured."
url: https://openaudit.se/auditors/code.licenses/
---

# Dependency licence policy

`code.licenses`

Checks dependency licences against a policy in settings["code.licenses"]: deny and allow lists of SPDX ids or globs, evaluated over SPDX expressions (OR, AND, WITH). Reads licences offline from package-lock.json, composer.lock, installed node_modules and Python virtualenvs. Skipped until a policy is configured.

- **Engine:** Built-in
- **Targets:** Codebase
- **Areas:** Compliance
- **Runs:** By default, when the target applies
- **Network:** Only the target itself

## Run only this auditor

```sh
bunx @openaudit/cli . --only code.licenses
```

Built into openaudit; nothing to install.

## More compliance auditors

- [ScanCode licence scan](https://openaudit.se/auditors/code.scancode/) (`code.scancode`)
