chore(ci): run cargo-deny to check licenses and sources

This commit is contained in:
Orhun Parmaksız 2022-02-28 17:36:22 +03:00
parent 97f810c106
commit 919e399cdf
No known key found for this signature in database
GPG key ID: F83424824B3E4B90
3 changed files with 23 additions and 0 deletions

View file

@ -12,3 +12,4 @@
Dockerfile
LICENSE*
rustfmt.toml
deny.toml

View file

@ -159,6 +159,11 @@ jobs:
command: clippy
args: -- -D warnings
- name: Run cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check licenses sources
audit:
name: Audit
runs-on: ubuntu-latest

17
deny.toml Normal file
View file

@ -0,0 +1,17 @@
[licenses]
default = "deny"
unlicensed = "deny"
copyleft = "deny"
confidence-threshold = 0.8
allow = [
"MIT",
"Apache-2.0",
"BSL-1.0",
"MPL-2.0",
"ISC"
]
[sources]
unknown-registry = "deny"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]