Skip to content

Commit

Permalink
Run cargo-audit daily and when dependencies have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Mar 6, 2020
1 parent 81e73d8 commit 2cffafd
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/audit.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
name: Audit Check
on: [pull_request]
name: Security Audit
on:
pull_request:
paths: Cargo.lock
push:
branches: develop
paths: Cargo.lock
schedule:
- cron: '0 0 * * *'

jobs:
security_audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1
- name: Cache cargo bin
uses: actions/cache@v1
with:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-audit-v0.11.2
- uses: actions-rs/audit-check@v1
with:
args: --ignore RUSTSEC-2019-0031
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2cffafd

Please sign in to comment.