diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000000..d43f72b61a --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,24 @@ +name: License Check + +on: + push: + branches: [main] + pull_request: + +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: {{ env.RUST_VERSION }} + run: rustup run {{ env.RUST_VERSION }} cargo install cargo-deny + + - name: Run cargo-deny + run: rustup run {{ env.RUST_VERSION }} 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