Commit 5d58f86
[SEC-3.a] cargo-audit CI job (#105)
* feat(SEC-3.a): add cargo-audit CI job + audit.toml allowlist (#39)
Adds a security-rust job that runs cargo-audit against the Rust backend
on every push and PR. The allowlist lives at src-tauri/audit.toml and is
auto-discovered when the job runs in working-directory src-tauri.
Note: master had previously removed all GitHub Actions workflows
(commit bbc9929). This PR re-introduces .github/workflows/ci.yml,
containing only the new security-rust job per the scope of #39. The
previous frontend / backend jobs are intentionally not restored here;
restoring them is out of scope and should be a separate change.
Closes #39
* fix(SEC-3.a): move audit.toml to .cargo/, allowlist current advisories
cargo-audit 0.22.1 auto-discovers .cargo/audit.toml (under cwd's .cargo/
subdir), not bare audit.toml in cwd. Move src-tauri/audit.toml to
src-tauri/.cargo/audit.toml so the working-directory: src-tauri job step
picks it up automatically.
Also expand the allowlist to cover the 22 advisories currently flagged
against the dep tree, each with a one-line justification:
- 4 vulnerabilities with no upstream fix yet (rsa Marvin, 3x rustls-webpki
reachable via the AWS SDK / hyper-rustls chain).
- 16 unmaintained warnings (gtk-rs GTK3 family, proc-macro-error, unic-*).
- 2 unsound warnings (glib VariantStrIter, lru IterMut).
This lets `cargo audit --deny warnings` pass on a clean tree today and
turns the job into a real gate against any NEW advisory landing in the
dep tree.
---------
Co-authored-by: Ranel Karimov <ranel.karimov@logscale-it.com>1 parent 68df7b1 commit 5d58f86
2 files changed
Lines changed: 97 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
0 commit comments