Skip to content

Commit fca5d5e

Browse files
Update audit.yml
1 parent 29193e2 commit fca5d5e

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.github/workflows/audit.yml

+17-18
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: Audit project
1+
name: "Audit Dependencies"
22
on:
3-
workflow_dispatch:
3+
push:
4+
paths:
5+
# Run on changed dependencies
6+
- '**/Cargo.toml'
7+
- '**/Cargo.lock'
8+
# Rerun periodicly to pick up new advisories
49
schedule:
5-
- cron: '30 5 * * 1,3'
10+
- cron: '0 0 * * *'
11+
# Run manually
12+
workflow_dispatch:
613

714
jobs:
815
audit:
916
runs-on: ubuntu-latest
1017
permissions:
11-
contents: write
12-
pull-requests: write
13-
18+
contents: read
19+
issues: write
1420
steps:
15-
- name: Run cargo audit fix
16-
uses: simonhyll/cargo-audit@v1
17-
18-
- name: Create Pull Request
19-
uses: peter-evans/create-pull-request@v7
21+
- uses: actions/checkout@v4
22+
- uses: actions-rust-lang/audit@v1
23+
name: Audit Rust Dependencies
2024
with:
21-
token: ${{ secrets.GITHUB_TOKEN }}
22-
branch: bot/cargo-audit
23-
title: "[Bot] Audit fixes"
24-
commit-message: Cargo audit fixes
25-
body: >
26-
Updates to Cargo.toml and/or Cargo.lock with security fixes.
27-
labels: automated pr
25+
# Comma separated list of issues to ignore
26+
ignore: RUSTSEC-2020-0036

0 commit comments

Comments
 (0)