add audit check in CI

This commit is contained in:
Arniu 2020-10-10 21:01:03 +08:00
parent d765e9099d
commit 0d9c920d35
1 changed files with 18 additions and 0 deletions

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

@ -0,0 +1,18 @@
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
- cron: '0 0 * * *'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}