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