From d711f2aef38013cb2ec6d0eca638372600d63bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Sun, 4 Jun 2023 17:32:20 +0200 Subject: [PATCH] chore(ci): integrate cargo-deny for linting dependencies (#221) --- .github/workflows/ci.yml | 2 ++ deny.toml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 deny.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c877da61..01ffe168 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,8 @@ jobs: commits: "HEAD" - name: "Check typos" uses: crate-ci/typos@master + - name: "Lint dependencies" + uses: EmbarkStudios/cargo-deny-action@v1 coverage: runs-on: ubuntu-latest diff --git a/deny.toml b/deny.toml new file mode 100644 index 00000000..82342741 --- /dev/null +++ b/deny.toml @@ -0,0 +1,20 @@ +# configuration for https://github.com/EmbarkStudios/cargo-deny + +[licenses] +default = "deny" +unlicensed = "deny" +copyleft = "deny" +confidence-threshold = 0.8 +allow = ["Apache-2.0", "BSD-3-Clause", "MIT", "Unicode-DFS-2016", "WTFPL"] + +[advisories] +unmaintained = "deny" +yanked = "deny" + +[bans] +multiple-versions = "allow" + +[sources] +unknown-registry = "deny" +unknown-git = "warn" +allow-registry = ["https://github.com/rust-lang/crates.io-index"]