Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add dependency and license checks #170

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ members = ["crates/*"]

[workspace.package]
edition = "2021"
license = "GPL-3"
license = "GPL-3.0"

[workspace.dependencies]
anyhow = "1.0"
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 = [
AlexD10S marked this conversation as resolved.
Show resolved Hide resolved
"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 },
]
Loading