Repository navigation
docs(codebase): say that Dependabot does not watch the Rust workspace - #827
Merged
Merged
Conversation
The "Adding a new package" section said a root `cargo` Dependabot entry covers every Rust crate, but that entry is commented out (#76). Say what covers Rust dependencies today: the cargo-deny advisory check in the Security workflow, and manual bumps. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017pjjQdqk1kqBV42Y1fCNcx
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.
(Opus 5.5)
This PR fixes one stale docs paragraph. The two CI changes it was opened for are not needed, for the reasons below.
Change 1: audit dev and benchmark dependencies as a warning (already in place)
repo--security.ymlaudits withuv audit, not withpip-auditon auv export. Itspython-auditjob already has a second step, "Report on dev, docs and benchmark tooling". That step runsuv audit --frozenwith no group or extra filters and raises a::warningwhen it finds anything, the same way thepnpm auditdev step does. The step runs on the Monday schedule, on pushes to main, and on pull requests that change a lockfile or manifest.uv.lockhas 86, and the other 6 are the workspace's own packages, so it checks every third-party package in every group and extra, includingbenchmark.benchmarkgroup and the dev range) has 10 advisories, fixed in 6.0.7 and 6.0.8. The latest push run on main shows the "Python dev tooling advisories" warning.cargo deny check advisoriesalready checks the wholeCargo.lockgraph.deny.tomlturns on all features, sets no target filter and does not exclude dev dependencies. It fails on any advisory, so no separate warning step is needed.A warning annotation is easy to miss, because the Monday tracking issue opens only when a job fails. Whether a dev-tooling warning should also open or comment on that issue is a decision left for the maintainer.
Change 2: Dependabot for Cargo (not enabled)
The reason the entry stays commented out still holds. The root
Cargo.tomldeclares 19 path dependencies into thethird_party/rust/ruffsubmodule. Dependabot does not fetch submodule contents, so cargo cannot load the workspace manifest either with or withoutexclude-paths(#76). The upstream issue, dependabot/dependabot-core#11861, is still open. Anignorelist for ruff's crates, a separatedirectory, or a security-updates-only setup would all fail at the same manifest-loading step, before any dependency is considered.Workable options, if wanted later:
cargo updateand opens a pull request (the option Dependabot cannot update Rust dependencies: cargo workspace with path deps inside a submodule #76 already names).cargo denyweekly run, which already opens a tracking issue for a new RustSec advisory.What changed
docs/codebase.md, "Adding a new package > Rust packages", said a rootcargoDependabot entry covers every Rust crate. It now says Dependabot is off for the Rust workspace (#76), thatcargo denyin the Security workflow checks Rust dependencies against RustSec, and that Rust dependencies are bumped by hand.Cost
There is no CI change, so CI takes no extra time. For reference, the existing full
uv auditstep took about 0.6 s locally.Checks
scripts/validate.py: all validators pass, includingdependabotandworkflow_run_expressions.dependabot.ymlandrepo--security.ymlparse as YAML (they are unchanged).Versioning
This is a docs change for maintainers. No package code, user-visible behavior or stored format changes, and it needs no changelog entry.
🤖 Generated with Claude Code
https://claude.ai/code/session_017pjjQdqk1kqBV42Y1fCNcx