Skip to content

Commit 186f991

Browse files
authored
Enable cargo-deny in CI
1 parent efd8410 commit 186f991

2 files changed

Lines changed: 17 additions & 30 deletions

File tree

.github/workflows/cargo.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -75,32 +75,11 @@ jobs:
7575
env:
7676
RUSTDOCFLAGS: -Dwarnings
7777

78-
# cargo-deny:
79-
# name: cargo-deny
80-
81-
# # TODO: remove this matrix when https://github.com/EmbarkStudios/cargo-deny/issues/324 is resolved
82-
# strategy:
83-
# fail-fast: false
84-
# matrix:
85-
# platform:
86-
# - aarch64-apple-ios
87-
# - aarch64-linux-android
88-
# - i686-pc-windows-gnu
89-
# - i686-pc-windows-msvc
90-
# - i686-unknown-linux-gnu
91-
# - wasm32-unknown-unknown
92-
# - x86_64-apple-darwin
93-
# - x86_64-apple-ios
94-
# - x86_64-pc-windows-gnu
95-
# - x86_64-pc-windows-msvc
96-
# - x86_64-unknown-linux-gnu
97-
# - x86_64-unknown-redox
98-
99-
# runs-on: ubuntu-latest
100-
# steps:
101-
# - uses: actions/checkout@v6
102-
# - uses: EmbarkStudios/cargo-deny-action@v1
103-
# with:
104-
# command: check
105-
# log-level: error
106-
# arguments: --all-features --target ${{ matrix.platform }}
78+
cargo-deny:
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v6
82+
- uses: EmbarkStudios/cargo-deny-action@v2
83+
with:
84+
command: check
85+
arguments: --all-features

deny.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# Note: running just `cargo deny check` without a `--target` can result in
1010
# false positives due to https://github.com/EmbarkStudios/cargo-deny/issues/324
11+
[graph]
1112
targets = [
1213
{ triple = "aarch64-apple-darwin" },
1314
{ triple = "i686-pc-windows-gnu" },
@@ -26,7 +27,14 @@ exclude = ["rand_core"]
2627

2728
[advisories]
2829
yanked = "deny"
29-
ignore = []
30+
ignore = [
31+
# DoS via stack exhaustion in time RFC 2822 parsing.
32+
# Fix (>=0.3.47) requires Rust 1.88.0, our MSRV is 1.85.0.
33+
# dimpl only uses OffsetDateTime::now_utc() and Duration::days() for
34+
# certificate generation — no RFC 2822 parsing. A clippy disallowed-types
35+
# rule prevents accidental introduction of Rfc2822.
36+
"RUSTSEC-2026-0009",
37+
]
3038

3139
[bans]
3240
multiple-versions = "deny"

0 commit comments

Comments
 (0)