| 1 |
name: Security audit |
| 2 |
|
| 3 |
on: |
| 4 |
schedule: |
| 5 |
# Runs at 00:00 UTC everyday |
| 6 |
- cron: '0 0 * * *' |
| 7 |
push: |
| 8 |
paths: |
| 9 |
- '**/Cargo.toml' |
| 10 |
- '**/Cargo.lock' |
| 11 |
pull_request: |
| 12 |
jobs: |
| 13 |
audit: |
| 14 |
runs-on: ubuntu-latest |
| 15 |
steps: |
| 16 |
- name: Checkout repository |
| 17 |
uses: actions/checkout@v4 |
| 18 |
- name: Install Rust |
| 19 |
uses: actions-rs/toolchain@v1 |
| 20 |
with: |
| 21 |
toolchain: stable |
| 22 |
profile: minimal |
| 23 |
override: true |
| 24 |
- uses: Swatinem/rust-cache@v2 |
| 25 |
- uses: actions-rs/audit-check@v1 |
| 26 |
with: |
| 27 |
token: ${{ secrets.GITHUB_TOKEN }} |