Skip to content

Commit

Permalink
Add cargo audit CI task
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed May 29, 2024
1 parent 2d4bb1d commit 8ad5c90
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cargo-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Audit dependencies
on:
pull_request:
paths:
- .github/workflows/cargo-audit.yml
- Cargo.toml
- Cargo.lock
schedule:
# At 06:20 UTC every day. Will create an issue if a CVE is found.
- cron: '20 6 * * *'
workflow_dispatch:
jobs:
audit:
runs-on: ubuntu-latest
permissions:
issues: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

# We don't need to check CVEs against the checked in lockfile,
# but only against the newest compatible dependencies.
# This avoids significant maintenance work that provide no benefits.
# We only need to make sure there is any compatible dependency without a known issue
- run: cargo update

- uses: actions-rust-lang/audit@160ac8b6edd32f74656cabba9d1de3fc8339f676 # v1.2
name: Audit Rust Dependencies
with:
denyWarnings: true
# Ignored audit issues. This list should be kept short, and effort should be
# put into removing items from the list.
ignore:

0 comments on commit 8ad5c90

Please sign in to comment.