Skip to content

Commit 57f3996

Browse files
authored
Run cargo-audit daily or when dependencies have changed (#22)
* Run cargo-audit daily and when dependencies have changed See informalsystems/tendermint-rs#144 (comment) * Change actions/checkout back to v2
1 parent 5f464b3 commit 57f3996

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/audit.yaml

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,25 @@
1-
name: Audit Check
2-
on: [pull_request]
1+
name: Security Audit
2+
on:
3+
pull_request:
4+
paths: Cargo.lock
5+
push:
6+
branches: develop
7+
paths: Cargo.lock
8+
schedule:
9+
- cron: '0 0 * * *'
310

411
jobs:
512
security_audit:
13+
name: Security Audit
614
runs-on: ubuntu-latest
715
steps:
816
- uses: actions/checkout@v2
17+
- name: Cache cargo bin
18+
uses: actions/cache@v1
19+
with:
20+
path: ~/.cargo/bin
21+
key: ${{ runner.os }}-cargo-audit-v0.11.2
922
- uses: actions-rs/audit-check@v1
1023
with:
24+
args: --ignore RUSTSEC-2019-0031
1125
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)