mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
ci: Add cargo audit to the travis pipeline
cargo audit audits Cargo.lock for crates with security vulnerabvilities reported by the RustSec Advisory Database. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
de9eb3e0fa
commit
1387ac5571
@ -6,6 +6,7 @@ rust:
|
||||
before_script:
|
||||
- rustup component add clippy
|
||||
- rustup component add rustfmt
|
||||
- cargo install --force cargo-audit
|
||||
|
||||
script:
|
||||
- cargo rustc --bin cloud-hypervisor -- -D warnings
|
||||
@ -19,6 +20,7 @@ script:
|
||||
- cargo test
|
||||
- cargo clippy --all-targets --all-features -- -D warnings
|
||||
- find . -name "*.rs" | xargs rustfmt --check
|
||||
- cargo audit
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
|
Loading…
Reference in New Issue
Block a user