Commit a2f3404
ci: add fmt/clippy/audit gates and pin toolchain to 1.97.0 (#602)
Adds quality gates to the PR workflow:
- lint job: `cargo fmt --all -- --check` and
`cargo clippy --all-targets --all-features -- -D warnings`
(both already clean on the current tree)
- audit job: rustsec/audit-check for dependency CVEs
- rust-toolchain.toml pinned to 1.97.0 (matches the Dockerfile) so
local, CI, and prod builds share one compiler.
Audit triage (cargo audit found 3 vulnerabilities):
- remove_dir_all RUSTSEC-2023-0018: fixed by bumping the transitive
tempfile 3.3.0 -> 3.27.0 (drops remove_dir_all entirely).
- rsa RUSTSEC-2023-0071 and tokio-tar RUSTSEC-2025-0111: no upstream
fix and neither ships in the deployed binary (rsa is a phantom
Cargo.lock entry from sqlx's unused mysql backend; tokio-tar is a
testcontainers dev-dependency). Ignored via .cargo/audit.toml and the
workflow's ignore input, with rationale.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3d3779d commit a2f3404
4 files changed
Lines changed: 70 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments