hoc/.github/workflows/audit.yml
Valentin Brandl 175b7c828b
All checks were successful
continuous-integration/drone/push Build is passing
Cleanup cache keys
2020-11-23 14:36:43 +01:00

29 lines
621 B
YAML

name: Security audit
on:
schedule:
- cron: '0 1 * * *'
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
pull_request:
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache cargo registry, index and build directory
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
./target
key: audit-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}