-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate Cargo Audit into CI (#102)
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |