ci: add cargo audit job
This commit is contained in:
parent
88b6169489
commit
244528e4bb
@ -127,6 +127,13 @@ docs-jsonrpc:
|
|||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
|
|
||||||
|
cargo-audit:
|
||||||
|
stage: misc
|
||||||
|
script:
|
||||||
|
- scripts/gitlab/audit.sh
|
||||||
|
tags:
|
||||||
|
- rust-stable
|
||||||
|
|
||||||
test-android:
|
test-android:
|
||||||
stage: misc
|
stage: misc
|
||||||
image: parity/rust-android:gitlab-ci
|
image: parity/rust-android:gitlab-ci
|
||||||
|
12
scripts/gitlab/audit.sh
Normal file
12
scripts/gitlab/audit.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e # fail on any error
|
||||||
|
set -u # treat unset variables as error
|
||||||
|
|
||||||
|
rustup default stable
|
||||||
|
|
||||||
|
git submodule update --init --recursive
|
||||||
|
|
||||||
|
rustup show
|
||||||
|
cargo install cargo-audit
|
||||||
|
cargo audit
|
Loading…
Reference in New Issue
Block a user