-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70ae059
commit f0357de
Showing
1 changed file
with
21 additions
and
8 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 |
---|---|---|
@@ -1,16 +1,29 @@ | ||
# A routine check to see if there are any Rust-specific security vulnerabilities | ||
# in the repo we should be aware of. | ||
|
||
name: audit | ||
name: "Audit Dependencies" | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
# Run if workflow changes | ||
- '.github/workflows/audit.yml' | ||
# Run on changed dependencies | ||
- '**/Cargo.toml' | ||
- '**/Cargo.lock' | ||
# Run if the configuration file changes | ||
- '**/audit.toml' | ||
# Rerun periodicly to pick up new advisories | ||
schedule: | ||
- cron: "0 0 * * 1" # every Monday | ||
- cron: '0 0 * * *' | ||
# Run manually | ||
workflow_dispatch: | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
issues: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/audit@v1 | ||
name: Audit Rust Dependencies | ||
with: | ||
token: ${{ secrets.TOKEN }} |