Repository navigation
ci(repo): keep the lockfile and the action pins current with Dependabot - #70
Conversation
Monthly, grouped, lockfile-only: the manifest the generator writes is never edited, and the ci(deps) prefix keeps the commits out of the changelog so no release is cut. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
There was a problem hiding this comment.
Beyond the inline findings, I checked whether the ci(deps) prefix keeps these commits out of the changelog. It does: release-please-config.json marks ci as hidden, and Dependabot adds the colon after a closing parenthesis, so the subject becomes ci(deps): ....
Extended reasoning...
The only change is a new .github/dependabot.yml with uv (lockfile-only) and github-actions update entries. I confirmed in release-please-config.json that the ci type has "hidden": true, so the commit-prefix claim holds.
Findings marked 🟡 are optional suggestions and need no follow-up push.
| - package-ecosystem: "github-actions" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "monthly" | ||
| groups: | ||
| actions: | ||
| patterns: ["*"] | ||
| commit-message: | ||
| prefix: "ci(deps)" | ||
| open-pull-requests-limit: 2 |
There was a problem hiding this comment.
🔴 Maintainers will get monthly Dependabot PRs that hand-edit generator-owned workflows, which conflict with the next generated commit. The github-actions entry rewrites uses: pins in ci.yml, publish-pypi.yml, release-please.yml and release-doctor.yml. CLAUDE.md says: "Generator-owned, so don't edit them here: ... .github/workflows/ci.yml, the publish, release and sync workflows". Fix: drop the github-actions entry and bump action pins in the SDK configuration at the source, so no Dependabot PR touches a workflow file.
Why this was flagged
Every pinned action lives in a generator-owned workflow: actions/checkout and astral-sh/setup-uv at .github/workflows/ci.yml:24,27,46,49,84,87, publish-pypi.yml:20,23, release-please.yml:26,33, release-doctor.yml:15, seal-dispatch.yml:43. With this entry, Dependabot opens a grouped PR monthly that rewrites those uses: lines from a non-generated branch. REVIEW.md lists "A change to a generator-owned file ... outside a generated commit" as Important. CLAUDE.md says such edits conflict on the next regeneration, and a conflict blocks every SDK's release. On the base branch nothing edits these files outside generated commits.
Verification: Normal. Trigger: any newer release of the pinned actions, which already exists (for example setup-uv is pinned at v5.4.2), so Dependabot will open a grouped PR on its first monthly run. The diff adds - package-ecosystem: "github-actions" with directory: "/" (.github/dependabot.yml:18-27). A Dependabot PR is a non-generated commit that changes lines the generator writes.
| # Keeps the lockfile and the pinned GitHub Actions current. Lockfile-only, so | ||
| # the manifest the generator writes is never edited, and grouped monthly so | ||
| # the result is one pull request per ecosystem. The ci(deps) prefix keeps the | ||
| # commits out of the changelog and cuts no release. |
There was a problem hiding this comment.
🔴 Maintainers get a header comment that names the generator and restates the config below it. REVIEW.md flags both. Lines 1-4 say "the manifest the generator writes" and repeat the lockfile-only strategy, monthly grouping and ci(deps) prefix shown in lines 7-27. Fix: delete the header comment, or keep only a reason the config can't show, without naming the generator.
Why this was flagged
CLAUDE.md says "No provenance comments. Don't add a comment that marks code as hand-written or names the generator". REVIEW.md lists "A comment that restates the code, names the generator, or marks code as hand-written" as Important. Line 2 says "the manifest the generator writes is never edited". Lines 1-4 also restate versioning-strategy "lockfile-only", interval "monthly", the groups and prefix "ci(deps)" declared on lines 7-27. The base branch has no such comment.
Verification: nit. The comment is real and breaks a written rule, though nothing breaks at runtime. CLAUDE.md:46-48 says: "No provenance comments. Don't add a comment that marks code as hand-written or names the generator". Line 2 tells the reader which files the generator writes, which is a provenance statement of exactly that kind. This is a new file, so the base has no such comment.
| - package-ecosystem: "uv" | ||
| directory: "/" | ||
| schedule: | ||
| interval: "monthly" | ||
| versioning-strategy: "lockfile-only" |
There was a problem hiding this comment.
🟡 (optional) Contributors who follow CONTRIBUTING.md will install stale dev dependencies after each Dependabot lockfile PR. The uv lockfile-only update moves only uv.lock. requirements-dev.lock, exported from uv.lock by scripts/bootstrap:30, stays behind. Fix: keep requirements-dev.lock in step with uv.lock on every dependency update. For example, regenerate it with uv export -o requirements-dev.lock --no-hashes in a workflow that runs on Dependabot PRs, or document that those PRs need a re-export before merge. [also at: .github/dependabot.yml:17 - Developers and CI using requirements-dev.lock will see it drift from uv.lock after every Dependabot lockfile PR. The uv entry only updates uv.lock. requirements-dev.lock is exported from it by uv export in scripts/bootstrap:30 and is never regenerated by Dependabot.]
Why this was flagged
The uv ecosystem entry at .github/dependabot.yml:7-11 uses versioning-strategy: "lockfile-only", so Dependabot rewrites uv.lock only. requirements-dev.lock is a uv export of uv.lock (its header at requirements-dev.lock:2 and scripts/bootstrap:30). Dependabot does not regenerate exported requirements files. CONTRIBUTING.md:32 tells contributors to run pip install -r requirements-dev.lock. After a Dependabot PR merges, uv.lock carries the new (for example advisory-patched) versions while requirements-dev.lock still pins the old ones. pip-based contributors therefore keep installing the vulnerable or outdated versions, and the two lockfiles disagree until someone happens to run bootstrap. On the base branch both files are refreshed together by hand. The previous hand refresh, commit fcd0044, moved both.
Verification: Trigger: any Dependabot lockfile PR from the new uv entry merges without someone re-running the export. In .github/dependabot.yml lines 7-11, versioning-strategy: "lockfile-only" rewrites only uv.lock, while scripts/bootstrap:30 regenerates requirements-dev.lock. CONTRIBUTING.md:32 tells contributors to run pip install -r requirements-dev.lock, so they install the old pinned versions.
Keep the lockfile and the action pins current with Dependabot
Adds
.github/dependabot.ymlso the lockfile and the pinned GitHub Actions stop ageing between hand refreshes.Changes
ci(deps)prefix, which release-please hides from the changelog, so these pull requests cut no release..github/dependabot.ymlis a hand-written file the generator never touches, likeCLAUDE.mdand.github/CODEOWNERS.Verification
The file parses as YAML. Dependabot validates the schema when the file lands on the default branch and reports under Insights → Dependency graph → Dependabot.
🤖 Generated with Claude Code