@@ -23,6 +23,38 @@ defaults:
2323 shell : bash
2424
2525jobs :
26+ # Keep newly announced advisories visible without blocking unrelated PRs.
27+ # This job is deliberately omitted from tests-pass below, as in gitoxide.
28+ cargo-deny-advisories :
29+ name : Dependency advisories
30+ runs-on : ubuntu-latest
31+ steps :
32+ - name : Checkout
33+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
34+ with :
35+ persist-credentials : false
36+ - name : Check RustSec advisories
37+ uses : EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
38+ with :
39+ command : check advisories
40+ arguments : --workspace --all-features --locked
41+ rust-version : stable
42+
43+ cargo-deny :
44+ name : Dependency bans, licenses, and sources
45+ runs-on : ubuntu-latest
46+ steps :
47+ - name : Checkout
48+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
49+ with :
50+ persist-credentials : false
51+ - name : Check dependency policy
52+ uses : EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
53+ with :
54+ command : check bans licenses sources
55+ arguments : --workspace --all-features --locked
56+ rust-version : stable
57+
2658 lint :
2759 name : Rust formatting, clippy, and unit tests
2860 runs-on : ubuntu-latest
@@ -229,7 +261,7 @@ jobs:
229261 tests-pass :
230262 name : Tests pass
231263 if : always()
232- needs : [lint, test, features, no-c, packaging]
264+ needs : [cargo-deny, lint, test, features, no-c, packaging]
233265 runs-on : ubuntu-latest
234266 permissions : {}
235267 steps :
0 commit comments