Skip to content

Commit 72340f0

Browse files
committed
Add a workflow to run cargo audit each monday, and on push and PR to main.
1 parent d00e75f commit 72340f0

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/audit.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Audit
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
paths:
7+
- "Cargo.toml"
8+
- "Cargo.lock"
9+
- ".github/workflows/audit.yml"
10+
pull_request:
11+
paths:
12+
- "Cargo.toml"
13+
- "Cargo.lock"
14+
- ".github/workflows/audit.yml"
15+
schedule:
16+
- cron: "0 7 * * 1"
17+
workflow_dispatch:
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
audit:
24+
runs-on: ubuntu-latest
25+
timeout-minutes: 10
26+
steps:
27+
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
28+
- run: cargo install --locked cargo-audit
29+
- run: cargo audit

0 commit comments

Comments
 (0)