| 1 | name: Security audit |
| 2 | on: |
| 3 | workflow_call: |
| 4 | workflow_dispatch: |
| 5 | schedule: |
| 6 | - cron: "0 0 * * *" |
| 7 | push: |
| 8 | paths: |
| 9 | - "**/Cargo.toml" |
| 10 | - "**/Cargo.lock" |
| 11 | pull_request: |
| 12 | branches: ["main"] |
| 13 | paths: |
| 14 | - "**/Cargo.toml" |
| 15 | - "**/Cargo.lock" |
| 16 | |
| 17 | jobs: |
| 18 | audit: |
| 19 | name: Security Audit |
| 20 | runs-on: ubuntu-latest |
| 21 | steps: |
| 22 | - uses: actions/checkout@v4 |
| 23 | name: Checkout |
| 24 | |
| 25 | - uses: taiki-e/install-action@cargo-deny |
| 26 | name: Install cargo-deny |
| 27 | |
| 28 | - name: Scan for vulnerabilities |
| 29 | run: cargo deny check advisories |