Add cargo-deny github action
@@ -8,7 +8,6 @@ on:
jobs:
build-lint-test-benchmark:
-
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@@ -60,3 +59,20 @@ jobs:
with:
command: install
args: gitoxide
+
+ 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 }}
\ No newline at end of file
