From 0ed77dd267b70a0b27fc5f00376d7a00191d4654 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Mon, 21 Apr 2025 01:23:10 +0000 Subject: [PATCH 1/2] Add cargo deny license check --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8140b85806..9a1181570a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,6 +140,11 @@ jobs: - uses: EmbarkStudios/cargo-deny-action@34899fc7ba81ca6268d5947a7a16b4649013fea1 # v2.0.11 with: command: check advisories + + - name: Check licenses + uses: EmbarkStudios/cargo-deny-action@34899fc7ba81ca6268d5947a7a16b4649013fea1 # v2.0.11 + with: + command: check licenses docs: continue-on-error: true runs-on: ubuntu-latest From 2d6067c5ecbfc1f2bc7f8e3e63dfd766f3a52de7 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Mon, 21 Apr 2025 02:39:04 +0000 Subject: [PATCH 2/2] Add exceptions --- deny.toml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/deny.toml b/deny.toml index 60431d9ff2..04e158efa3 100644 --- a/deny.toml +++ b/deny.toml @@ -7,7 +7,30 @@ allow = [ "Apache-2.0", "ISC", "BSD-3-Clause", - "OpenSSL" +] + +exceptions = [ + { allow = ["MPL-2.0"], crate = "webpki-roots" }, # This crate is a dependency of `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_collections" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_locid" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_locid_transform" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_locid_transform_data" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_normalizer" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_normalizer_data" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_properties" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_properties_data" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_provider" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "icu_provider_macros" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "litemap" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "tinystr" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "writeable" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "unicode-ident" }, # This crate gets used transitively by `reqwest` and other crates. + { allow = ["Unicode-3.0"], crate = "yoke" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "yoke-derive" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "zerovec" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "zerovec-derive" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "zerofrom" }, # This crate gets used transitively by `reqwest`. + { allow = ["Unicode-3.0"], crate = "zerofrom-derive" }, # This crate gets used transitively by `reqwest`. ] [licenses.private] @@ -23,4 +46,5 @@ license-files = [ [advisories] unmaintained = "none" -yanked = "allow" \ No newline at end of file +yanked = "allow" +