Skip to content

Commit 40fef52

Browse files
committed
ci: optimize cargo audit workflow
uses actions-rust-lang/audit, which has caching Signed-off-by: Pau Capdevila <pau@githedgehog.com>
1 parent f954801 commit 40fef52

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/cargo-audit.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ name: Cargo Audit
33
on:
44
push:
55
paths:
6+
- '.github/workflows/cargo-audit.yaml'
67
- '**/Cargo.toml'
78
- '**/Cargo.lock'
8-
pull_request:
9-
paths:
10-
- '**/Cargo.toml'
11-
- '**/Cargo.lock'
9+
schedule:
10+
- cron: '0 0 * * *'
11+
workflow_dispatch:
1212

1313
jobs:
1414
audit:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: dtolnay/rust-toolchain@stable
19-
- name: Install cargo-audit
20-
run: cargo install cargo-audit
21-
- name: Run cargo audit
22-
run: cargo audit
18+
- uses: actions-rust-lang/audit@v1
19+
name: Audit Rust Dependencies

0 commit comments

Comments
 (0)