| 1 | name: Security audit |
| 2 | |
| 3 | permissions: {} |
| 4 | |
| 5 | on: |
| 6 | pull_request: |
| 7 | paths: |
| 8 | - '.github/workflows/security-audit.yml' |
| 9 | - '**/Cargo.toml' |
| 10 | - '**/Cargo.lock' |
| 11 | - '**/audit.toml' |
| 12 | push: |
| 13 | branches: [main, master] |
| 14 | schedule: |
| 15 | # Run weekly on Monday at 06:31 UTC |
| 16 | - cron: '31 6 * * 1' |
| 17 | |
| 18 | env: |
| 19 | CARGO_TERM_COLOR: always |
| 20 | |
| 21 | jobs: |
| 22 | self-audit: |
| 23 | name: cargo-audit |
| 24 | runs-on: ubuntu-latest |
| 25 | steps: |
| 26 | - uses: actions/checkout@v7 |
| 27 | - uses: dtolnay/rust-toolchain@stable |
| 28 | - name: Install cargo-audit |
| 29 | run: cargo install cargo-audit |
| 30 | - name: Run cargo audit |
| 31 | run: cargo audit |
| 32 |