Add audit workflow for GitHub CI

This commit is contained in:
Héctor Ramón Jiménez 2022-01-13 19:59:25 +07:00
parent 5f9cf991a7
commit 34adeaa081
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

16
.github/workflows/audit.yml vendored Normal file
View file

@ -0,0 +1,16 @@
name: Audit
on: [push]
jobs:
dependencies:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v1
- name: Install cargo-audit
run: cargo install cargo-audit
- uses: actions/checkout@master
- name: Manually update `nix` crates # See https://github.com/nix-rust/nix/issues/1627
run: |
cargo update --package nix:0.20.0 --precise 0.20.2
cargo update --package nix:0.22.0 --precise 0.22.2
- name: Audit dependencies
run: cargo audit