From b926d9147819ec455aa1bbdfb7fe968c358f191b Mon Sep 17 00:00:00 2001 From: Akita Noek Date: Sun, 15 Nov 2026 08:12:28 -0500 Subject: [PATCH] Let the audit workflow publish its check run, update unsound dependencies audit-check reports warnings as a check run, which the repository's read-only GITHUB_TOKEN can't create, so Audit failed on every push to main that had warnings. Grant checks: write. Update anyhow to 1.0.104, the rand dev-dependency to 0.9.5, and libc to 0.2.182 so rustix can move to 1.1.6, clearing RUSTSEC-2026-0190, RUSTSEC-2026-0097 and RUSTSEC-2026-0486. pin-utils (RUSTSEC-2026-0441, unmaintained) has no fixed release and stays a warning. --- .github/workflows/audit.yml | 6 +++ Cargo.lock | 87 +++++-------------------------------- Cargo.toml | 6 +-- 3 files changed, 21 insertions(+), 78 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index c704005..b5baf86 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -15,6 +15,12 @@ on: env: CARGO_TERM_COLOR: always +# audit-check publishes its findings as a check run, which the default +# read-only token can't create. +permissions: + contents: read + checks: write + jobs: security-audit: runs-on: ubuntu-latest diff --git a/Cargo.lock b/Cargo.lock index 3230d10..1606bad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,21 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "addr2line" -version = "0.24.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" -dependencies = [ - "gimli", -] - -[[package]] -name = "adler2" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" - [[package]] name = "aho-corasick" version = "1.1.3" @@ -93,12 +78,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.98" +version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" -dependencies = [ - "backtrace", -] +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" [[package]] name = "arrayvec" @@ -112,26 +94,11 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" -[[package]] -name = "backtrace" -version = "0.3.74" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" -dependencies = [ - "addr2line", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", - "windows-targets", -] - [[package]] name = "bitflags" -version = "2.9.0" +version = "2.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" [[package]] name = "bumpalo" @@ -357,12 +324,6 @@ dependencies = [ "wasi", ] -[[package]] -name = "gimli" -version = "0.31.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" - [[package]] name = "glob" version = "0.3.2" @@ -448,15 +409,15 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.172" +version = "0.2.182" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" +checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" [[package]] name = "linux-raw-sys" -version = "0.9.4" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" [[package]] name = "log" @@ -470,15 +431,6 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" -[[package]] -name = "miniz_oxide" -version = "0.8.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be647b768db090acb35d5ec5db2b0e1f1de11133ca123b9eacf5137868f892a" -dependencies = [ - "adler2", -] - [[package]] name = "nix" version = "0.29.0" @@ -500,15 +452,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "object" -version = "0.36.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" -dependencies = [ - "memchr", -] - [[package]] name = "once_cell" version = "1.21.3" @@ -571,9 +514,9 @@ checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5" [[package]] name = "rand" -version = "0.9.1" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fbfd9d094a40bf3ae768db9361049ace4c0e04a4fd6b359518bd7b73a73dd97" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" dependencies = [ "rand_chacha", "rand_core", @@ -663,12 +606,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "rustc-demangle" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" - [[package]] name = "rustc_version" version = "0.4.1" @@ -680,9 +617,9 @@ dependencies = [ [[package]] name = "rustix" -version = "1.0.5" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d97817398dd4bb2e6da002002db259209759911da105da92bec29ccb12cf58bf" +checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa" dependencies = [ "bitflags", "errno", diff --git a/Cargo.toml b/Cargo.toml index d0d37e6..cac8c0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,14 +20,14 @@ coverage = [] [dependencies] log = "=0.4.27" -libc = "=0.2.172" +libc = "=0.2.182" clap = { version = "=4.5.37", features = ["derive", "string", "env", "wrap_help"] } clap_complete = { version = "=4.5.48", features = ["unstable-dynamic"] } uuid = { version = "=1.16.0", features = ["v4"] } nix = { version = "=0.29.0", features = ["fs", "hostname", "mount", "signal", "user"] } walkdir = "=2.5.0" data-encoding = "=2.9.0" -anyhow = { version = "=1.0.98", features = ["backtrace"] } +anyhow = { version = "=1.0.104", features = ["backtrace"] } colored = "=3.0.0" fast-glob = "=0.4.5" toml = "=0.8.20" @@ -36,7 +36,7 @@ serde_json = "=1.0.140" chrono = "=0.4.38" [dev-dependencies] -rand = "=0.9.1" +rand = "=0.9.5" rstest = "=0.25.0" [profile.dev]