From 17b40253e043e3400c78d9b3484dd079cc092703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonasz=20Ma=C5=82ecki?= Date: Mon, 30 Nov 2026 09:26:25 +0100 Subject: [PATCH] ci: use the CNCF license allowlist in cargo-deny MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow the whole CNCF allowlist license policy plus Apache-2.0, as wasmCloud does, instead of the subset the graph uses today. A new dependency under an allowlisted license no longer fails the run; any other license still needs a CNCF exception. Raise the confidence threshold to 0.93. Signed-off-by: Jonasz MaƂecki --- deny.toml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/deny.toml b/deny.toml index 7f31fe4..14fe47d 100644 --- a/deny.toml +++ b/deny.toml @@ -26,15 +26,31 @@ ignore = [ [licenses] version = 2 -# Every license here is Apache-2.0 or on the CNCF allowlist license policy -# (cncf/foundation, policies-guidance/allowed-third-party-license-policy.md), -# a subset of it that the dependency graph uses today. A crate under another -# license fails the run until it is added deliberately. +confidence-threshold = 0.93 +# The allowlist is the CNCF allowlist license policy +# (cncf/foundation, policies-guidance/allowed-third-party-license-policy.md) +# plus Apache-2.0, so not every entry is in use. A crate under another +# license needs a CNCF exception (https://exceptions.cncf.io/) before it is +# listed under `exceptions`. +unused-allowed-license = "allow" allow = [ "Apache-2.0", + "0BSD", + "BSD-2-Clause", + "BSD-2-Clause-FreeBSD", "BSD-3-Clause", "ISC", "MIT", + "MIT-0", + "OpenSSL", + "OpenSSL-standalone", + "PostgreSQL", + "PSF-2.0", + "Python-2.0", + "Python-2.0.1", + "SSLeay-standalone", + "UPL-1.0", + "X11", "Zlib", ] # Unicode-3.0 is not on the CNCF allowlist. unicode-ident (license @@ -45,7 +61,6 @@ allow = [ exceptions = [ { crate = "unicode-ident", allow = ["Unicode-3.0"] }, ] -confidence-threshold = 0.8 [bans] multiple-versions = "warn"