Add scheduled audit check in CI

This commit is contained in:
Riccardo Casatta 2020-11-19 15:18:04 +01:00
parent 25bde82048
commit dbfa0506db
No known key found for this signature in database
GPG Key ID: FD986A969E450397

19
.github/workflows/audit.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '0 0 * * 0' # Once per week
jobs:
security_audit:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}