name: Security Audit
on:
push:
branches:
pull_request:
branches:
schedule:
# Run weekly on Sunday at 00:00 UTC
- cron: '0 0 * * 0'
permissions:
contents: read
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run cargo audit
run: cargo audit || exit 1