From 679cd4cd95267c7ca1d48bee10d041bab69ac044 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Mon, 22 Aug 2022 14:33:45 -0400 Subject: [PATCH] deny: run as a github action so it's tested in CI I think I did this right? --- .github/workflows/build.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ad704840..531768812 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,6 +66,23 @@ jobs: command: fmt args: --all -- --check + cargo-deny: + runs-on: ubuntu-latest + strategy: + matrix: + checks: + - advisories + - bans licenses sources + + # Prevent sudden announcement of a new advisory from failing ci: + continue-on-error: ${{ matrix.checks == 'advisories' }} + + steps: + - uses: actions/checkout@v2 + - uses: EmbarkStudios/cargo-deny-action@v1 + with: + command: check ${{ matrix.checks }} + clippy-check: name: Clippy check permissions: