From a1d1d09a987c6b8e3133afa0da19ac526fa86133 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 26 Jun 2025 12:59:18 +0200 Subject: [PATCH 1/4] CI: adding check that we do not infringe copyright licenses --- .github/workflows/license.yml | 23 +++++++++++++++++++++++ deny.toml | 15 +++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/workflows/license.yml create mode 100644 deny.toml diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000000..1c0f7524b4 --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,23 @@ +name: License Check + +on: + push: + branches: [main] + pull_request: + +jobs: + license-audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain + with: + toolchain: 1.85.0 + + - name: Install cargo-deny + run: cargo install cargo-deny + + - name: Run cargo-deny + run: cargo deny check licenses diff --git a/deny.toml b/deny.toml new file mode 100644 index 0000000000..0fa0c2232d --- /dev/null +++ b/deny.toml @@ -0,0 +1,15 @@ +[licenses] +allow = [ + "0BSD", + "Apache-2.0", + "BSD-2-Clause", + "BSD-3-Clause", + "CDLA-Permissive-2.0", + "CC0-1.0", + "ISC", + "MIT", + "Unlicensed", + "Unicode-DFS-2016", + "Unicode-3.0", + "Zlib", +] \ No newline at end of file From 835a12bb4754b5ee2a20f9003bf3facc3f257020 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 26 Jun 2025 16:07:49 +0200 Subject: [PATCH 2/4] fixup! CI: adding check that we do not infringe copyright licenses --- .github/workflows/license.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 1c0f7524b4..126a1880ce 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Rust - uses: dtolnay/rust-toolchain + uses: dtolnay/rust-toolchain@master with: toolchain: 1.85.0 From 2294232db423692a333edd3c060195f5a1c8a6f8 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Thu, 26 Jun 2025 16:08:38 +0200 Subject: [PATCH 3/4] fixup! CI: adding check that we do not infringe copyright licenses --- .github/workflows/license.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 126a1880ce..3866afb5d5 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -11,12 +11,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up Rust + - name: Set up Rust and cargo deny uses: dtolnay/rust-toolchain@master with: toolchain: 1.85.0 - - - name: Install cargo-deny run: cargo install cargo-deny - name: Run cargo-deny From 38ea6b5bce595d12b29b15d03748d80938662da3 Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Tue, 8 Jul 2025 20:11:05 +0200 Subject: [PATCH 4/4] Fixup --- .github/workflows/license.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 3866afb5d5..d43f72b61a 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -8,14 +8,17 @@ on: jobs: license-audit: runs-on: ubuntu-latest + env: + RUST_VERSION: 1.85.0 + steps: - uses: actions/checkout@v4 - name: Set up Rust and cargo deny uses: dtolnay/rust-toolchain@master with: - toolchain: 1.85.0 - run: cargo install cargo-deny + toolchain: {{ env.RUST_VERSION }} + run: rustup run {{ env.RUST_VERSION }} cargo install cargo-deny - name: Run cargo-deny - run: cargo deny check licenses + run: rustup run {{ env.RUST_VERSION }} cargo deny check licenses