Skip to content

Commit 148c361

Browse files
committed
Add cargo-deny workflow job
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 99a2571 commit 148c361

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ jobs:
3434
command: check
3535

3636

37+
deny:
38+
name: deny
39+
runs-on: ubuntu-latest
40+
strategy:
41+
matrix:
42+
checks:
43+
- advisories
44+
- bans licenses sources
45+
46+
# Prevent sudden announcement of a new advisory from failing ci:
47+
continue-on-error: ${{ matrix.checks == 'advisories' }}
48+
49+
steps:
50+
- uses: actions/checkout@v3
51+
- name: cargo-deny
52+
uses: EmbarkStudios/cargo-deny-action@v1
53+
with:
54+
command: check ${{ matrix.checks }}
55+
56+
3757
fmt:
3858
name: format
3959
runs-on: ubuntu-latest
@@ -59,6 +79,7 @@ jobs:
5979
if: ${{ success() }}
6080
needs:
6181
- check
82+
- deny
6283
- fmt
6384
runs-on: ubuntu-latest
6485
steps:

0 commit comments

Comments
 (0)