Skip to content

docs(codebase): say that Dependabot does not watch the Rust workspace - #827

Merged
JuroOravec merged 1 commit into
mainfrom
ci/security-dev-audit
Nov 21, 2026
Merged

JuroOravec merged 1 commit into
mainfrom
ci/security-dev-audit

Conversation

@JuroOravec

@JuroOravec JuroOravec commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

(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.yml audits with uv audit, not with pip-audit on a uv export. Its python-audit job already has a second step, "Report on dev, docs and benchmark tooling". That step runs uv audit --frozen with no group or extra filters and raises a ::warning when it finds anything, the same way the pnpm audit dev step does. The step runs on the Monday schedule, on pushes to main, and on pull requests that change a lockfile or manifest.

  • Coverage: run locally, it checks 80 packages. uv.lock has 86, and the other 6 are the workspace's own packages, so it checks every third-party package in every group and extra, including benchmark.
  • It finds a problem today: django 6.0.6 (from the benchmark group 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.
  • Rust: cargo deny check advisories already checks the whole Cargo.lock graph. deny.toml turns 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.toml declares 19 path dependencies into the third_party/rust/ruff submodule. Dependabot does not fetch submodule contents, so cargo cannot load the workspace manifest either with or without exclude-paths (#76). The upstream issue, dependabot/dependabot-core#11861, is still open. An ignore list for ruff's crates, a separate directory, 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:

What changed

docs/codebase.md, "Adding a new package > Rust packages", said a root cargo Dependabot entry covers every Rust crate. It now says Dependabot is off for the Rust workspace (#76), that cargo deny in 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 audit step took about 0.6 s locally.

Checks

  • scripts/validate.py: all validators pass, including dependabot and workflow_run_expressions.
  • dependabot.yml and repo--security.yml parse as YAML (they are unchanged).
  • A separate agent checked the paragraph's facts and prose, and its findings are applied.

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

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
@JuroOravec
JuroOravec merged commit 4d9b797 into main Nov 21, 2026
17 of 18 checks passed
@JuroOravec
JuroOravec deleted the ci/security-dev-audit branch November 21, 2026 15:29
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.

1 participant