Skip to content

Commit bd71e7a

Browse files
committed
ci: add job to run cargo audit on pull_request and weekly
1 parent 72b45cb commit bd71e7a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/audit.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Audit
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/Cargo.toml'
7+
- '**/Cargo.lock'
8+
schedule:
9+
- cron: '0 0 * * 0' # Once per week
10+
11+
jobs:
12+
13+
security_audit:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions-rs/audit-check@v1
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)