Skip to content

Instantly share code, notes, and snippets.

@welf
Last active May 17, 2024 00:45
Show Gist options
  • Save welf/7632499beb26170aeed1186909aeb559 to your computer and use it in GitHub Desktop.
Save welf/7632499beb26170aeed1186909aeb559 to your computer and use it in GitHub Desktop.
GitHub Actions - Rust dependencies audit
# Daily scan Rust dependencies for vulnerabilities
name: Security Audit
on:
schedule:
- cron: "0 0 * * *"
push:
paths:
- Cargo.toml
- Cargo.lock
- .github/workflows/audit.yml
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Scan for vulnerabilities
run: cargo audit --color always -D warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment