Skip to content

fix: regenerate dependencies-cargo.json to match Cargo.lock#160

Merged
nedtwigg merged 1 commit into
mainfrom
fix/regenerate-cargo-supply-chain
Jun 20, 2026
Merged

fix: regenerate dependencies-cargo.json to match Cargo.lock#160
nedtwigg merged 1 commit into
mainfrom
fix/regenerate-cargo-supply-chain

Conversation

@dormouse-bot

Copy link
Copy Markdown
Collaborator

Regenerate dependencies-cargo.json to match Cargo.lock

Fixes #159 — the nightly security audit failed its supply-chain FAIL IF check: running node website/scripts/generate-deps.js from a clean checkout modified website/src/data/dependencies-cargo.json, meaning the committed supply-chain data had drifted from the actual Cargo dependency graph.

The base64 0.22.1 crate had been promoted from a transitive to a direct dependency (it now carries a declaredName), but the generated supply-chain JSON was never regenerated and committed. SECURITY.md requires the generated supply-chain files to stay in sync with every dependency change, so the disclosed dependency list on the website's supply-chain page no longer matched Cargo.lock.

This PR runs the generator and commits its output: base64 moves from the transitive section to direct (gaining declaredName), an 8-insertion / 7-deletion change — exactly the drift the audit reported.

Verification

  • Reproduced the audit failure: node website/scripts/generate-deps.js against main (7f88741) produced the same 8 insertions, 7 deletions diff to dependencies-cargo.json.
  • After committing, re-running the generator produces no further diff — the file is now in sync, so the audit's "must not change" check passes.
  • Only dependencies-cargo.json changed; the npm and runtime supply-chain files were already in sync.

No separate regression test is added: the security-audit workflow's FAIL IF check (generator must not modify committed files) is itself the regression gate, and it now passes.

The base64 0.22.1 crate was promoted from a transitive to a direct Cargo
dependency without regenerating the supply-chain data, so a clean run of
website/scripts/generate-deps.js modified the committed JSON and the
nightly security audit failed its supply-chain FAIL IF check.

Regenerate the file: base64 moves to the direct section with a
declaredName field. Re-running the generator now produces no diff.

Fixes #159

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: 86a3c75
Status: ✅  Deploy successful!
Preview URL: https://2cd1d285.mouseterm.pages.dev
Branch Preview URL: https://fix-regenerate-cargo-supply.mouseterm.pages.dev

View logs

@nedtwigg nedtwigg merged commit 09b0338 into main Jun 20, 2026
4 checks passed
@nedtwigg nedtwigg deleted the fix/regenerate-cargo-supply-chain branch June 20, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[security-audit] FAIL on 2026-06-20

2 participants