Skip to content

Commit

Permalink
Add cargo deny config and add cargo deny job to ci (#254)
Browse files Browse the repository at this point in the history
* Add cargo deny config and add cargo deny job to ci

* Run CI on pull requests
  • Loading branch information
iamjpotts authored Aug 21, 2023
1 parent ded4c25 commit 8ae928c
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,23 @@ on:
branches:
- master
pull_request:
branches:
- master

name: CI
jobs:
deny:
name: Cargo deny
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
timeout-minutes: 10

build_and_test:
name: OS Test
strategy:
Expand Down
40 changes: 40 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

[advisories]
notice = "deny"
unmaintained = "deny"
vulnerability = "deny"
yanked = "deny"
ignore = []

[licenses]
allow = [
"Apache-2.0",
"MIT",
]
default = "deny"
confidence-threshold = 1.0
unlicensed = "deny"

[bans]
allow = []
deny = []
multiple-versions = "deny"
skip = [
# Transitive dependency of both redox_syscall and rustix (rustix has newer).
#
# Only one version of bitflags ultimately gets compiled in due to OS-based feature flags in tempfile.
{ name = "bitflags" },
]
skip-tree = []
wildcards = "deny"

[sources]
allow-git = []
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
unknown-git = "deny"
unknown-registry = "deny"

[sources.allow-org]
github = []
gitlab = []
bitbucket = []

0 comments on commit 8ae928c

Please sign in to comment.