feat(ci): add cargo-audit workflow for scanning rust vulnerabilities (#6351)
Signed-off-by: Sai Karthik <kskarthik@disroot.org>
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
name: "Cargo Audit"
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
# Run if workflow changes
|
||||||
|
- '.github/workflows/cargo-audit.yml'
|
||||||
|
# Run on changed dependencies
|
||||||
|
- '**/Cargo.toml'
|
||||||
|
- '**/Cargo.lock'
|
||||||
|
# Run if the configuration file changes
|
||||||
|
- '**/audit.toml'
|
||||||
|
# Rerun periodically to pick up new advisories
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
# Run manually
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
audit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
# https://github.com/marketplace/actions/cargo-audit-your-rust-dependencies
|
||||||
|
- uses: actions-rust-lang/audit@72c09e02f132669d52284a3323acdb503cfc1a24
|
||||||
|
name: Audit Rust Dependencies
|
||||||
|
# with:
|
||||||
|
# Comma separated list of issues to ignore
|
||||||
|
# ignore: RUSTSEC-2020-0036
|
||||||
Reference in New Issue
Block a user