Skip to content

Commit

Permalink
Fix cargo deny action, commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Aug 13, 2024
1 parent 17f0545 commit f71f48a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Dependency Licenses Review
run: cargo deny check
# https://doc.rust-lang.org/stable/clippy/continuous_integration/github_actions.html

- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Check for spelling errors
Expand All @@ -37,3 +35,6 @@ jobs:
reporter: github-check
# - name: Check if source code files have license header
# run: make check-license-headers
# this action runs pretty late, to collect previous errors when new advisories arive
- uses: EmbarkStudios/cargo-deny-action@v1
# https://doc.rust-lang.org/stable/clippy/continuous_integration/github_actions.html
26 changes: 26 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[bans]
skip = [{ name = "base64" }, { name = "windows-sys" }]

[graph]
all-features = true

[licenses]
allow = [
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"ISC",
"MIT",
"MPL-2.0",
"OpenSSL",
"Unlicense",
]
confidence-threshold = 1.0
exceptions = [{ crate = "unicode-ident", allow = ["Unicode-DFS-2016"] }]
clarify = [
# see https://github.com/briansmith/ring/blob/main/LICENSE for details
{ crate = "ring", expression = "MIT AND ISC AND OpenSSL", license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
] },
]
unused-allowed-license = "allow"

0 comments on commit f71f48a

Please sign in to comment.