Skip to content

Commit 897440e

Browse files
committed
feat(ci): add a workflow to run cargo audit
Signed-off-by: Tarek <[email protected]>
1 parent 3d3661a commit 897440e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/audit.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Cargo Audit
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: "30 1 1,15 * *"
10+
11+
jobs:
12+
cargo_audit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v2
17+
18+
- name: Install Rust
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
profile: minimal
22+
toolchain: stable
23+
24+
- name: Install cargo audit
25+
run: cargo install --locked cargo-audit
26+
27+
- name: Run cargo audit
28+
run: cargo audit

0 commit comments

Comments
 (0)