Skip to content

Commit 5e9ed77

Browse files
committed
feature: workflow for cargo audit
1 parent 3099c36 commit 5e9ed77

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/audit.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Cargo Audit
2+
on:
3+
push:
4+
paths:
5+
- "**/Cargo.toml"
6+
- "**/Cargo.lock"
7+
pull_request:
8+
workflow_dispatch:
9+
jobs:
10+
audit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
- name: Set up Rust
16+
uses: actions-rust-lang/setup-rust-toolchain@v1
17+
- name: Install cargo-audit
18+
run: cargo install cargo-audit
19+
- name: Run cargo audit
20+
run: cargo audit -D warnings

0 commit comments

Comments
 (0)