From: Colin Walters Date: Tue, 10 May 2022 21:13:44 +0000 (-0400) Subject: ci: use cargo-deny X-Git-Tag: archive/raspbian/2022.4-1+rpi1^2~9^2^2~19^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9f8d026f82808e9e24d3a703359943019d8260b0;p=ostree.git ci: use cargo-deny Copied from https://github.com/ostreedev/ostree-rs-ext/pull/291 Part of unifying our CI. --- diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d047c8c7..dff0f517 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -66,3 +66,11 @@ jobs: run: cargo fmt -p ostree -- --check -l - name: cargo clippy (warnings) run: cargo clippy -p ostree --features=${{ env['CARGO_PROJECT_FEATURES'] }} -- -D warnings + cargo-deny: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: EmbarkStudios/cargo-deny-action@v1 + with: + log-level: warn + command: check bans sources licenses diff --git a/deny.toml b/deny.toml new file mode 100644 index 00000000..75b6ac9b --- /dev/null +++ b/deny.toml @@ -0,0 +1,10 @@ +[licenses] +unlicensed = "deny" +allow = ["Apache-2.0", "Apache-2.0 WITH LLVM-exception", "MIT", "BSD-3-Clause", "BSD-2-Clause"] + +[bans] + +[sources] +unknown-registry = "deny" +unknown-git = "deny" +allow-git = []