Skip to content

Commit 4f983c7

Browse files
authored
[CI] Update cargo-deny config to new format (#233)
1 parent a846f86 commit 4f983c7

File tree

3 files changed

+31
-27
lines changed

3 files changed

+31
-27
lines changed

.github/workflows/cargo-deny.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v3
3737

38-
- uses: EmbarkStudios/cargo-deny-action@v1
38+
- uses: EmbarkStudios/cargo-deny-action@v2
3939
with:
4040
log-level: error
4141
command: check

Cargo.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deny.toml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,36 @@
11
# https://embarkstudios.github.io/cargo-deny/
22

3+
[graph]
34
targets = [
4-
{ triple = "aarch64-apple-darwin" },
5-
{ triple = "aarch64-linux-android" },
6-
{ triple = "wasm32-unknown-unknown" },
7-
{ triple = "x86_64-apple-darwin" },
8-
{ triple = "x86_64-pc-windows-msvc" },
9-
{ triple = "x86_64-unknown-linux-gnu" },
10-
{ triple = "x86_64-unknown-linux-musl" },
5+
{ triple = "aarch64-apple-darwin" },
6+
{ triple = "aarch64-linux-android" },
7+
{ triple = "wasm32-unknown-unknown" },
8+
{ triple = "x86_64-apple-darwin" },
9+
{ triple = "x86_64-pc-windows-msvc" },
10+
{ triple = "x86_64-unknown-linux-gnu" },
11+
{ triple = "x86_64-unknown-linux-musl" },
1112
]
12-
13+
exclude = ["gtk-sys"]
1314

1415
[advisories]
15-
vulnerability = "deny"
16-
unmaintained = "warn"
16+
version = 2
1717
yanked = "deny"
1818
ignore = []
1919

20-
2120
[bans]
2221
multiple-versions = "deny"
2322
wildcards = "allow" # at least until https://github.com/EmbarkStudios/cargo-deny/issues/241 is fixed
2423
deny = []
2524
skip = []
2625
skip-tree = []
2726

28-
2927
[licenses]
30-
unlicensed = "allow"
31-
allow-osi-fsf-free = "either"
32-
copyleft = "allow"
28+
version = 2
29+
unused-allowed-license = "allow"
30+
allow = [
31+
"MIT",
32+
"Unicode-3.0",
33+
"ISC",
34+
"Apache-2.0",
35+
"Apache-2.0 WITH LLVM-exception",
36+
]

0 commit comments

Comments
 (0)