From 0dc0e2ccab96b7ec393ba5931284825cc33b85e6 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 11 Sep 2022 14:27:03 +0200 Subject: [PATCH] Add cargo-deny workflow job Signed-off-by: Matthias Beyer --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9803fab2..f71b703d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,27 @@ jobs: with: command: check + + deny: + name: 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@v3 + - name: cargo-deny + uses: EmbarkStudios/cargo-deny-action@v1 + with: + command: check ${{ matrix.checks }} + + # We need some "accummulation" job here because bors fails (timeouts) to # listen on matrix builds. # Hence, we have some kind of dummy here that bors can listen on @@ -41,6 +62,7 @@ jobs: if: ${{ success() }} needs: - check + - deny runs-on: ubuntu-latest steps: - name: CI succeeded