Security Audit #8
This file contains hidden or 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
| name: Security Audit | |
| on: | |
| schedule: | |
| # Run weekly on Sundays at 2:00 AM UTC | |
| - cron: '0 2 * * 0' | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Install cargo-audit | |
| run: cargo install cargo-audit | |
| - name: Run security audit | |
| run: cargo audit | |
| - name: Check for outdated dependencies | |
| run: | | |
| # Install cargo-outdated with locked dependencies to avoid version conflicts | |
| cargo install cargo-outdated --locked || echo "cargo-outdated installation failed, skipping outdated check" | |
| if command -v cargo-outdated >/dev/null 2>&1; then | |
| cargo outdated --root-deps-only || echo "cargo-outdated failed, but this is non-critical" | |
| fi |