2019-11-25 16:50:17 +01:00
|
|
|
name: Security audit
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 1 * * *'
|
|
|
|
push:
|
|
|
|
paths:
|
2019-12-11 19:38:56 +01:00
|
|
|
- 'Cargo.toml'
|
|
|
|
- 'Cargo.lock'
|
2019-11-25 16:50:17 +01:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
security_audit:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Cache cargo registry
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: /usr/share/rust/.cargo/registry
|
|
|
|
key: ${{ runner.os }}-cargo-registry
|
|
|
|
|
|
|
|
- name: Cache cargo index
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: /usr/share/rust/.cargo/git
|
|
|
|
key: ${{ runner.os }}-cargo-index
|
|
|
|
|
|
|
|
- uses: actions-rs/audit-check@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|