Skip to content

Commit

Permalink
ci: Make sure cargo-audit up-to-date
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsoledad committed Oct 9, 2019
1 parent 1633a16 commit 014fe92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ matrix:
- make check-cargotoml
- make check-whitespaces
- make check-dirty-rpc-doc
- name: Security Audit
if: 'tag IS NOT present AND (type = pull_request OR branch in (master, staging, trying) OR repo != nervosnetwork/ckb)'
os: linux
rust: nightly
script: make security-audit

- name: Test benchmarks on Linux
env: CACHE_NAME=bench
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ clippy: setup-ckb-test ## Run linter to examine Rust source codes.

.PHONY: security-audit
security-audit: ## Use cargo-audit to audit Cargo.lock for crates with security vulnerabilities.
@cargo audit --version || cargo install cargo-audit
@cargo audit
@cargo +nightly install cargo-audit -Z install-upgrade
cargo audit
# expecting to see "Success No vulnerable packages found"

.PHONY: bench-test
Expand Down

0 comments on commit 014fe92

Please sign in to comment.