Add cargo-deny GitHub action (#11)

* Add cargo-deny GitHub action

* Remove Travis rule from mergify
This commit is contained in:
Johan Andersson 2020-02-05 15:06:36 +01:00 committed by GitHub
parent acc39d8a70
commit 5b3e7f415b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 1 deletions

View file

@ -27,6 +27,12 @@ jobs:
command: clippy
args: --all-features -- -D warnings
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: EmbarkStudios/cargo-deny-action@v0
test:
name: Test
runs-on: macOS-latest

View file

@ -5,7 +5,6 @@ pull_request_rules:
- "#review-requested=0"
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
- status-success=Travis CI - Pull Request
- base=master
- label!=work-in-progress
actions:

17
deny.toml Normal file
View file

@ -0,0 +1,17 @@
[bans]
multiple-versions = "deny"
deny = []
skip = []
[licenses]
unlicensed = "deny"
# We want really high confidence when inferring licenses from text
confidence-threshold = 0.92
allow = [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"MIT",
"MPL-2.0",
]