ci: use cargo-deny

Copied from https://github.com/ostreedev/ostree-rs-ext/pull/291

Part of unifying our CI.
This commit is contained in:
Colin Walters 2022-05-10 17:13:44 -04:00
parent 891c7dffa7
commit 9f8d026f82
2 changed files with 18 additions and 0 deletions

View File

@ -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

10
deny.toml Normal file
View File

@ -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 = []