Skip to content

Commit c7fa6a9

Browse files
authored
Create audit.yaml (#110)
* Create audit.yaml * Update audit.yaml Also run audit on PRs * Update audit.yaml set working directory to `sdk` * Update audit.yaml set working-directory in with clause? * Update audit.yaml invoke cargo-audit manually
1 parent 1b923f8 commit c7fa6a9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/audit.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Security audit
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
workflow_dispatch:
6+
pull_request:
7+
env:
8+
rust_version: 1.51.0
9+
10+
jobs:
11+
audit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: ${{ env.rust_version }}
18+
- name: install cargo audit
19+
run: cargo install cargo-audit
20+
- name: Run audit
21+
working-directory: sdk
22+
run: cargo audit

0 commit comments

Comments
 (0)