Skip to content

Commit

Permalink
Setup cargo-deny in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 15, 2022
1 parent 94587c5 commit b938f6f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Expand Up @@ -9,6 +9,7 @@ on:
- .github/**
- .ci/**
- Cargo.toml
- deny.toml

jobs:
lint:
Expand All @@ -22,3 +23,9 @@ jobs:
- run: cargo clippy --color=always -- -D warnings -A clippy::manual-non-exhaustive
env:
RUSTFLAGS: "-Dwarnings"

cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
9 changes: 9 additions & 0 deletions deny.toml
@@ -0,0 +1,9 @@
[licenses]
allow-osi-fsf-free = "either"
copyleft = "deny"

[advisories]
ignore = ["RUSTSEC-2020-0071"]
unmaintained = "deny"
unsound = "deny"
yanked = "deny"

0 comments on commit b938f6f

Please sign in to comment.