From 1ca309052e7c840a2c8c342315baedace57ba3e8 Mon Sep 17 00:00:00 2001 From: Rain Chen Date: Wed, 28 Nov 2018 23:39:48 +0800 Subject: [PATCH] chore: add `make security-audit` to audit crates with security vulnerabilities (#38) --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2d2d3b4ad0..0ad0bf612f 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,12 @@ stats: @cargo count --version || cargo +nightly install --git https://github.com/kbknapp/cargo-count @cargo count --separator , --unsafe-statistics +# Use cargo-audit to audit Cargo.lock for crates with security vulnerabilities +# expecting to see "Success No vulnerable packages found" +security-audit: + @cargo audit --version || cargo install cargo-audit + @cargo audit + .PHONY: build build-integration-test .PHONY: fmt test clippy proto doc doc-deps check stats -.PHONY: ci ci-quick info +.PHONY: ci ci-quick info security-audit