Skip to content

Commit 0356c80

Browse files
committed
Add cargo-deny
1 parent 388b2e5 commit 0356c80

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
- name: Format
4141
run: nix develop --command treefmt --fail-on-change
4242

43+
- name: cargo-deny
44+
run: nix develop --command cargo deny check
45+
4346
- name: Clippy
4447
if: steps.filter.outputs.flake == 'true' || steps.filter.outputs.rust == 'true'
4548
run: nix develop --command cargo clippy --all-targets -- -D warnings

deny.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[advisories]
2+
version = 2
3+
db-path = "~/.cargo/advisory-db"
4+
db-urls = [ "https://github.com/rustsec/advisory-db" ]
5+
6+
[licenses]
7+
version = 2
8+
allow = [
9+
"MIT",
10+
"GPL-3.0",
11+
"Apache-2.0",
12+
"BSD-3-Clause",
13+
"OpenSSL",
14+
"Unicode-DFS-2016",
15+
"ISC",
16+
"LicenseRef-hdf5",
17+
]
18+
19+
[[licenses.clarify]]
20+
name = "ring"
21+
expression = "MIT AND ISC AND OpenSSL"
22+
license-files = [
23+
{ path = "LICENSE", hash = 0xbd0eed23 },
24+
]
25+
26+
[[licenses.clarify]]
27+
name = "hdf5-metno-src"
28+
expression = "LicenseRef-hdf5"
29+
license-files = [
30+
{ path = "ext/hdf5/COPYING", hash = 0xf13e3591 },
31+
]
32+
33+
[bans]
34+
multiple-versions = "allow"

flake.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
treefmt
6363
mdl
6464

65+
# Dependency auditing
66+
cargo-deny
67+
6568
# Container image management
6669
skopeo
6770

0 commit comments

Comments
 (0)