Installing the command-line executable
Assuming you have Rust/Cargo installed , run this command in a terminal:
cargo install gitlab-cargo-audit
It will make the gitlab-cargo-audit command available in your PATH if you've allowed the PATH to be modified when installing Rust . cargo uninstall gitlab-cargo-audit uninstalls.
Back to the crate overview .
Readme
GitLab cargo-audit
Generate GitLab Dependency Scanning report using cargo-audit .
Usage
Add the following to your . gitlab- ci. yml:
audit :
stage : test
script :
- gitlab-cargo-audit --output-path gl-dependency-scanning-report.json
artifacts :
when : always
reports :
dependency_scanning : gl-dependency-scanning-report.json
License
Dual licensed under the MIT and Apache 2.0 licenses.