mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 22:34:45 +00:00
Add cargo deny on CI (#8580)
Closes: - https://github.com/sigp/lighthouse/issues/8408 Add `cargo deny` on CI with deprecated crates (`ethers` and `ethereum-types`) banned and duplicates banned for `reqwest`. Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
9
Makefile
9
Makefile
@@ -326,6 +326,15 @@ install-audit:
|
||||
audit-CI:
|
||||
cargo audit
|
||||
|
||||
# Runs cargo deny (check for banned crates, duplicate versions, and source restrictions)
|
||||
deny: install-deny deny-CI
|
||||
|
||||
install-deny:
|
||||
cargo install --force cargo-deny --version 0.18.2
|
||||
|
||||
deny-CI:
|
||||
cargo deny check bans sources --hide-inclusion-graph
|
||||
|
||||
# Runs `cargo vendor` to make sure dependencies can be vendored for packaging, reproducibility and archival purpose.
|
||||
vendor:
|
||||
cargo vendor
|
||||
|
||||
Reference in New Issue
Block a user