Title: Rework dependency updates: Dependabot for CVEs, Renovate for everything else · Issue #400 · DiamondLightSource/python-copier-template · GitHub
Open Graph Title: Rework dependency updates: Dependabot for CVEs, Renovate for everything else · Issue #400 · DiamondLightSource/python-copier-template
X Title: Rework dependency updates: Dependabot for CVEs, Renovate for everything else · Issue #400 · DiamondLightSource/python-copier-template
Description: Rework dependency updates: Renovate only, no automerge, 3-day cooldown, weekly unlocked tests Problem We use an uncomfortable mix of Renovate and Dependabot, with no clear split of responsibilities. Renovate's lockFileMaintenance automer...
Open Graph Description: Rework dependency updates: Renovate only, no automerge, 3-day cooldown, weekly unlocked tests Problem We use an uncomfortable mix of Renovate and Dependabot, with no clear split of responsibilities...
X Description: Rework dependency updates: Renovate only, no automerge, 3-day cooldown, weekly unlocked tests Problem We use an uncomfortable mix of Renovate and Dependabot, with no clear split of responsibilities...
Opengraph URL: https://github.com/DiamondLightSource/python-copier-template/issues/400
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Rework dependency updates: Dependabot for CVEs, Renovate for everything else","articleBody":"# Rework dependency updates: Renovate only, no automerge, 3-day cooldown, weekly unlocked tests\n\n## Problem\n\n- We use an uncomfortable mix of Renovate and Dependabot, with no clear split of responsibilities.\n- Renovate's `lockFileMaintenance` automerges, which people dislike, and it fills git history with lockfile commits.\n- Nothing tells us when an upstream release will break downstream users who install unlocked.\n- There's no cooldown on new releases, which leaves us exposed to supply-chain attacks via freshly published packages.\n- Until recently, Renovate only fixed CVEs in direct dependencies, so CVEs in transitive dependencies in `uv.lock` sat unfixed (see python-zocalo#319 for an example of the manual catch-up).\n\n## Goals\n\n1. CI runs against the lockfile, so upstream releases don't break unrelated PRs.\n2. A periodic **unlocked** run tells us what upstream changes would break downstream users.\n3. Nothing resolves releases newer than **3 days**: not lock refreshes, not local upgrades, not unlocked runs.\n4. CVEs are patched as soon as the fix release is 3 days old, including in transitive dependencies. Urgent fixes can bypass the cooldown per package.\n\n## Proposal\n\n| Area | Current | Proposed |\n|---|---|---|\n| CI | Runs locked (`uv run --locked`) | Unchanged |\n| Release cooldown | None | **`exclude-newer = \"3 days\"` in `pyproject.toml`**, matched by Renovate `minimumReleaseAge: \"3 days\"`. Applies to every resolution: lock refreshes, local `uv lock --upgrade`, and the unlocked job |\n| CVE alerts | Dependabot alerts (enabled in settings) | Unchanged. Used only as the alert source; **no Dependabot PRs, no settings changes** |\n| CVE fixes | Renovate `vulnerabilityAlerts` (via `config:recommended`), **direct dependencies only** | Unchanged config, and **now covers transitive deps in `uv.lock`** (Renovate ≥ 44.221.0, renovatebot/renovate#47482). Security PRs open immediately, ignoring schedule and grouping. If the fix is under 3 days old, the PR fails to lock until the window passes; for urgent cases, add `exclude-newer-package` to bypass |\n| Lockfile refresh | Renovate `lockFileMaintenance`, **automerged** | **On demand only**: a Dependency Dashboard checkbox, never automerged. Obeys the cooldown via `pyproject.toml` |\n| Upstream breakage | Nothing | **Weekly unlocked test job in `periodic.yml`**; opens/updates an issue on failure |\n| Actions / pre-commit bumps | Renovate, minor/patch grouped | Renovate, **all grouped into a weekly PR, no automerge** |\n| Template-managed deps downstream | Ignored in `template/renovate.json.jinja` | Unchanged |\n| Copier updates | Renovate copier manager | Unchanged |\n| Automerge | On for lock maintenance, via the `renovate-approve` app | **Off everywhere**; `renovate-approve` no longer needed |\n\nRenovate is the only bot. Dependabot is used only as the source of alerts on GitHub. On internal GitLab, Renovate's `osvVulnerabilityAlerts` plays the same role, and also covers uv transitive deps. So the setup is consistent across both.\n\nRenovate doesn't apply `minimumReleaseAge` to `lockFileMaintenance`; it just runs `uv lock --upgrade`. That's why the cooldown has to live in `pyproject.toml` rather than only in Renovate config.\n\n## Implementation (outline)\n\n- **`template/pyproject.toml.jinja` (and the template's own `pyproject.toml`):** add `exclude-newer = \"3 days\"` under `[tool.uv]`.\n- **`renovate.json` / `template/renovate.json.jinja`:**\n - set `automerge: false`\n - add a weekly `schedule`\n - set `minimumReleaseAge: \"3 days\"`\n - set `lockFileMaintenance.dependencyDashboardApproval: true`\n - group actions/pre-commit updates\n - keep the existing template-managed ignores and the default `vulnerabilityAlerts`\n- **`periodic.yml`:**\n - add a weekly job that runs tests with `--upgrade` instead of `--locked`, across the supported Python matrix (the cooldown comes from `pyproject.toml`)\n - open or update a single issue on failure\n - render `periodic.yml` unconditionally, since it's currently gated on `sphinx`, and make the linkcheck job conditional instead\n- **Docs:**\n - rewrite `renovate.md` to remove automerge and the `renovate-approve` app, and to describe the dashboard lock refresh and security PRs\n - document the cooldown in `lock-requirements.md`, including how to bypass it for an urgent fix with `exclude-newer-package = { \u003cpkg> = false }`, to be removed after merge\n\n## Open questions\n\n- [ ] Is the Mend-hosted Renovate app on ≥ 44.221.0, and does it have `read` access to Dependabot alerts? Both are needed for transitive CVE fixes.\n- [ ] Verify on a test repo that Renovate opens a fix PR for a transitive-only vulnerable package in `uv.lock`, and that a fix under 3 days old succeeds on a later run once the window passes. The transitive feature only landed on 2026-11-05.\n- [ ] Should the weekly periodic job also run `pip-audit` against the locked environment, as a safety net while the transitive support beds in?\n- [ ] Does `dependencyDashboardApproval` behave as expected for `lockFileMaintenance` on our Renovate version?\n- [ ] Should repos that build and deploy images from the lock keep a scheduled (e.g. monthly) lock refresh in their own Renovate config?\n- [ ] Align the cooldown window with python-zocalo, which uses the same pattern with 7 days.","author":{"url":"https://github.com/coretl","@type":"Person","name":"coretl"},"datePublished":"2026-11-06T14:45:29Z","url":"https://github.com/DiamondLightSource/python-copier-template/issues/400"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a73979d2-37c7-1273-57ae-c1c900761671 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BAD8:3AA6A6:4F29DC:6CF4EC:6B0455E9 |
| html-safe-nonce | 3c82aefaa523937f44ab6625b62108296a5e455294121dbbcb242b680154f91a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUQ4OjNBQTZBNjo0RjI5REM6NkNGNEVDOjZCMDQ1NUU5IiwidmlzaXRvcl9pZCI6IjMyNDUxMzg5Nzk4MjEyMTMxNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2554a4f9a4f134bf26e8b34e31025bfad97ca2220f40c0bf5a5c0917278ad5fb |
| hovercard-subject-tag | issue:6244761215 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DiamondLightSource/python-copier-template/400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5ceb31715537a58843ec2036da3768e864496ee066d2d02f9645df8afdd2f81/DiamondLightSource/python-copier-template/issues/400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5ceb31715537a58843ec2036da3768e864496ee066d2d02f9645df8afdd2f81/DiamondLightSource/python-copier-template/issues/400 |
| og:image:alt | Rework dependency updates: Renovate only, no automerge, 3-day cooldown, weekly unlocked tests Problem We use an uncomfortable mix of Renovate and Dependabot, with no clear split of responsibilities... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | coretl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| turbo-cache-control | no-preview |
| go-import | github.com/DiamondLightSource/python-copier-template git https://github.com/DiamondLightSource/python-copier-template.git |
| octolytics-dimension-user_id | 1233618 |
| octolytics-dimension-user_login | DiamondLightSource |
| octolytics-dimension-repository_id | 725201281 |
| octolytics-dimension-repository_nwo | DiamondLightSource/python-copier-template |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 725201281 |
| octolytics-dimension-repository_network_root_nwo | DiamondLightSource/python-copier-template |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width