Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/deny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: cargo-deny

# Pull requests check only dependency changes; the daily run catches advisories
# published against an unchanged Cargo.lock.
on:
pull_request:
paths:
- "**/Cargo.toml"
- "Cargo.lock"
- "deny.toml"
- ".github/workflows/deny.yml"
schedule:
- cron: "37 1 * * *"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && 'pr' || 'full' }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

permissions:
contents: read

jobs:
deny:
name: cargo-deny (${{ matrix.checks }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
checks: [advisories, "bans licenses sources"]
steps:
- uses: actions/checkout@v7

- uses: ./.github/actions/setup-rust

- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny@0.20.2

- name: Check
run: cargo deny --locked check ${{ matrix.checks }}
Loading
Loading