From 34adeaa0810b3f36e47c2b63b0a09401a3cb878b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 13 Jan 2022 19:59:25 +0700 Subject: Add `audit` workflow for GitHub CI --- .github/workflows/audit.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/audit.yml (limited to '.github') diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 00000000..2ffa10a8 --- /dev/null +++ b/.github/workflows/audit.yml @@ -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 -- cgit