Skip to content

Commit

Permalink
Add cargo deny to our presubmits (#424)
Browse files Browse the repository at this point in the history
Inspired by ureq [doing the
same](algesten/ureq#661)

This will help us keep track of our dependencies and make sure we aren't
using ones with the wrong licenses.
  • Loading branch information
timothyfroehlich authored Oct 4, 2023
1 parent 2495bcb commit 97b915c
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 1,113 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,23 @@ jobs:
- name: Rust lint
run: cargo-fmt --all --check

cargo-deny:
runs-on: ubuntu-22.04
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
- uses: EmbarkStudios/cargo-deny-action@v1
with:
command: check ${{ matrix.checks }}

validate-dependabot:
runs-on: ubuntu-latest
steps:
Expand Down
Loading

0 comments on commit 97b915c

Please sign in to comment.