Cargo audit - #137
Merged
Merged
Conversation
Upgrade self_update to 1.0.0-rc.6 so quick-xml is no longer pulled at 0.38 (RUSTSEC-2026-0194/0195), and force event-listener 5.4.2 for RUSTSEC-2026-0221. Remaining alerts are unmaintained/unsound crates behind Substrate and optional subxt-lightclient. Co-authored-by: Cursor <cursoragent@cursor.com>
Release publish already failed on audit; keep the same gate on the main CI job so advisories are caught before tagging. Pin the release workflow to the same cargo-audit version as CI. Co-authored-by: Cursor <cursoragent@cursor.com>
n13
requested changes
Aug 11, 2026
n13
left a comment
Contributor
There was a problem hiding this comment.
Reviewer model: GPT Sol
Verdict: REQUEST_CHANGES
Blocking finding:
src/cli/update.rs:257(also lines 265 and 324):updater.target()already returns&str, but the new migration passes&targetat all three call sites. The repository's requiredSKIP_CIRCUIT_BUILD=1 cargo clippy --locked --all-targets -- -D warningscheck rejects these asneedless_borrow/needless_borrows_for_generic_args, and GitHub's Analysis (Clippy & Doc) job is already failing at this head. Remove the extra&at all three sites so the blocking CI gate passes.
Validation at 6f708e7:
git diff --check— passed.cargo +nightly fmt --all -- --check— passed.taplo format --check --config taplo.toml— passed.SKIP_CIRCUIT_BUILD=1 cargo test --locked --lib cli::update::tests::— passed (4 tests).SKIP_CIRCUIT_BUILD=1 cargo build --locked --bin quantus— passed.- End-to-end updater smoke test on a scratch copy — passed: fetched the real v1.5.0 macOS archive and checksum, verified SHA-256, extracted, replaced the scratch binary, and reported
quantus 1.5.0. - Local
cargo auditwas unavailable becausecargo-auditis not installed; the PR's blocking Security Audit job passed. SKIP_CIRCUIT_BUILD=1 cargo clippy --locked --all-targets -- -D warnings— failed on the three new borrows above.
No other blocking findings found in the changed updater, dependency, or workflow behavior.
n13
approved these changes
Aug 11, 2026
n13
left a comment
Contributor
There was a problem hiding this comment.
Reviewer model: GPT Sol
Verdict: APPROVE
The previous blocking Clippy finding is resolved at aca12a7: the redundant borrows were removed from all three migrated self_update call sites, and the exact required Clippy command now passes. I found no other blocking issues in the updater migration, dependency resolution, or workflow changes.
Validation at aca12a7d0ce9576aa155c0e09d4a448cf184fa2a:
- Complete diff and follow-up commit inspected against base
b8937340cb628ce829443ea164e1d2586920a737;git diff --checkpassed. cargo +nightly fmt --all -- --checkpassed.taplo format --check --config taplo.tomlpassed.SKIP_CIRCUIT_BUILD=1 cargo test --locked --lib cli::update::tests::passed (4 tests).SKIP_CIRCUIT_BUILD=1 cargo clippy --locked --all-targets -- -D warningspassed.SKIP_CIRCUIT_BUILD=1 cargo build --locked --bin quantuspassed.quantus update --checksuccessfully exercised the live latest-release lookup.- End-to-end updater smoke test on a scratch copy passed: selected the real v1.5.0 macOS asset and checksum, verified SHA-256, extracted, replaced the scratch binary, and reported
quantus 1.5.0. - The blocking CI Security Audit passed with zero vulnerabilities and five allowed upstream warnings; all six current GitHub checks are green.
No blocking findings.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
self_updateto1.0.0-rc.6(drops vulnerablequick-xml0.38; RUSTSEC-2026-0194 / 0195) and forceevent-listener5.4.2 (RUSTSEC-2026-0221).quantus updateto theself_update1.0 API (asset_identifier,release_tag,Releases::latest(), getters,tempfile/self-replaceinstead of dropped re-exports).continue-on-error) so advisories fail PRs before the release workflow; pin releasecargo-auditto the same 0.22.1 as CI.Still reported (warnings only — not fixable here without large upstream bumps)
derivative,libsecp256k1,pastesp-*proc-macro-error2subxt-macro0.44 (still present in 0.50)lru0.12.5subxt-lightclient/smoldot-light0.17 (^0.12); fixed in smoldot-light ≥1.3 / subxt 0.50 pathcargo auditafter this PR: 0 vulnerabilities, 5 allowed warnings.Test plan
SKIP_CIRCUIT_BUILD=1 cargo check/ clippycargo audit→ 0 vulnerabilitiescontinue-on-error)quantus update --checkagainst GitHub releases (self_update 1.0 path)