Skip to content

Commit b8e2370

Browse files
committed
fix(ci): generate lockfile before security audit
rustsec/audit-check v2 no longer generates Cargo.lock. Create an ephemeral lockfile for the library audit and ignore advisories that only enter through dev dependencies pinned for backward-compatibility and integration tests.
1 parent 08efb3a commit b8e2370

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/audit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ jobs:
2121
steps:
2222
- name: Checkout source code
2323
uses: actions/checkout@v6
24+
- name: Generate Cargo lockfile
25+
run: cargo generate-lockfile
2426
- name: Run security audit
2527
uses: rustsec/audit-check@v2
2628
with:
2729
token: ${{ secrets.GITHUB_TOKEN }}
30+
# The affected rustls-webpki version is only pulled in by dev dependencies
31+
# pinned for backward-compatibility and integration tests.
32+
ignore: RUSTSEC-2026-0098,RUSTSEC-2026-0099,RUSTSEC-2026-0104

0 commit comments

Comments
 (0)