Skip to content

Commit 66cf476

Browse files
committed
ci: update audit.yml workflow to use actions-rust-lang/audit
The old actions-rs/audit-check is no longer maintained.
1 parent 1f1361a commit 66cf476

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

.github/workflows/audit.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,26 @@ name: Audit
33
on:
44
push:
55
paths:
6+
# Run if workflow changes
7+
- '.github/workflows/audit.yml'
8+
# Run on changed dependencies
69
- '**/Cargo.toml'
710
- '**/Cargo.lock'
11+
# Run if the configuration file changes
12+
- '**/audit.toml'
13+
# Rerun periodically to pick up new advisories
814
schedule:
9-
- cron: '0 0 * * 0' # Once per week
15+
- cron: '0 0 * * *' # Nightly
16+
# Run manually
17+
workflow_dispatch:
1018

1119
jobs:
12-
13-
security_audit:
14-
runs-on: ubuntu-20.04
20+
audit:
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
issues: write
1525
steps:
1626
- uses: actions/checkout@v4
17-
- uses: actions-rs/audit-check@v1
18-
with:
19-
token: ${{ secrets.GITHUB_TOKEN }}
27+
- uses: actions-rust-lang/audit@v1
28+
name: Audit Rust Dependencies

0 commit comments

Comments
 (0)