Skip to content

Commit

Permalink
Incorporate Cargo Audit into CI (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
deg4uss3r authored Aug 22, 2024
1 parent e5f8759 commit a7864ee
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on:
push:
pull_request:
types: [opened, reopened]
schedule:
- cron: '00 15 * * 1'

name: Audit

jobs:
check:
name: audit
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install Cargo Audit
run: cargo install cargo-audit --locked
shell: bash
- name: Run Audit
run: cargo audit
10 changes: 10 additions & 0 deletions audit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[advisories]
ignore = []
informational_warnings = ["unmaintained"] # warn for categories of informational advisories
severity_threshold = "low" # CVSS severity ("none", "low", "medium", "high", "critical")

[output]
deny = ["unmaintained"] # exit on error if unmaintained dependencies are found
format = "terminal" # "terminal" (human readable report) or "json"
quiet = false # Only print information on error
show_tree = true # Show inverse dependency trees along with advisories (default: true)

0 comments on commit a7864ee

Please sign in to comment.