Skip to content

Commit

Permalink
ci: add dependency and license checks (#170)
Browse files Browse the repository at this point in the history
* ci: add dependency and license checks

* chore: modify list of compliance licenses (#172)

* fix: ignore dependencies with a reason to pass the deny checks (#174)

* fix: ignore dependencies with a reason to pass the deny checks

* refactor: remove useless comments

* fix: only show warn for unmantained libs

---------

Co-authored-by: Alex Bean <[email protected]>
  • Loading branch information
evilrobot-01 and AlexD10S authored May 15, 2024
1 parent 9a54f46 commit 48eec26
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
- name: Build default features
run: cargo build

deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: EmbarkStudios/cargo-deny-action@v1

unit-tests:
needs: lint
runs-on: ubuntu-latest
Expand Down
38 changes: 38 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[graph]
all-features = true

# This section is considered when running `cargo deny check advisories`
[advisories]
unmaintained = "warn"
ignore = [
{ id = "RUSTSEC-2024-0336", reason = "No upgrade available. Tracking the vulnerability: https://github.com/r0gue-io/pop-cli/issues/173" },
{ id = "RUSTSEC-2023-0071", reason = "No upgrade available. Tracking the vulnerability: https://github.com/r0gue-io/pop-cli/issues/173" },
]

[licenses]
allow = [
"Apache-2.0",
"Apache-2.0 WITH LLVM-exception",
"BSL-1.0",
"BSD-2-Clause",
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"GPL-3.0",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
"Unlicense"
]
confidence-threshold = 0.93

[[licenses.exceptions]]
allow = ["OpenSSL"]
name = "ring"

[[licenses.clarify]]
name = "ring"
expression = "ISC AND MIT AND OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]

0 comments on commit 48eec26

Please sign in to comment.