Skip to content

Commit fbefb66

Browse files
becomingwisestAfoHT
authored andcommitted
ci: Audit-check: create Cargo.lock before audit-check
Allow on demand action checks use latest actions/checkout --- #1080 switched to using rustsec/audit-check but didn't setup the Cargo.lock file. This action has been failing for three months. https://github.com/rtic-rs/rtic/actions/workflows/audit.yaml --- rustsec/audit-check#39 describes how a missing Cargo.lock will be missing in library crates.
1 parent 8bcd248 commit fbefb66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/audit.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ name: Security audit
22
on:
33
schedule:
44
- cron: '0 0 * * *'
5+
workflow_dispatch:
56
jobs:
67
security_audit:
78
runs-on: ubuntu-latest
89
steps:
9-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
11+
- run: cargo generate-lockfile # create Cargo.lock
1012
- uses: rustsec/[email protected]
1113
with:
1214
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)