Skip to content

Commit bc12fa0

Browse files
committed
Add security audit to CI.
1 parent 703824f commit bc12fa0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/audit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: "Audit Dependencies"
2+
3+
on:
4+
push:
5+
paths:
6+
# Run if workflow changes
7+
- '.github/workflows/audit.yml'
8+
# Run on changed dependencies
9+
- '**/Cargo.toml'
10+
- '**/Cargo.lock'
11+
# Run if the configuration file changes
12+
- '**/audit.toml'
13+
schedule:
14+
# run weekly
15+
- cron: '0 0 * * 0'
16+
workflow_dispatch:
17+
18+
jobs:
19+
audit:
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
issues: write
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions-rust-lang/audit@v1
27+
name: Audit Rust Dependencies

0 commit comments

Comments
 (0)