Last active
May 17, 2024 00:45
-
-
Save welf/7632499beb26170aeed1186909aeb559 to your computer and use it in GitHub Desktop.
GitHub Actions - Rust dependencies 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
# 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