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