Skip to content

Keep dependencies up to date with Renovate - #149

Open
rithviknishad wants to merge 1 commit into
mainfrom
chore/renovate
Open

rithviknishad wants to merge 1 commit into
mainfrom
chore/renovate

Conversation

@rithviknishad

Copy link
Copy Markdown
Member

Why

Dependency updates here come from Dependabot security updates only. Its 15 open PRs have gone stale (GitHub has paused them), and the repo has 104 open alerts (6 critical, 54 high). care_fe already uses the Renovate app; this sets docs up the same way, using Renovate's own recommended base.

What you get

Kind of update How it arrives Merged by
Minor and patch, all packages and actions One PR a week, "all non-major dependencies" (Monday before 4 AM IST) Renovate, when the checks pass
Lockfile refresh (fixes most transitive alerts) One PR a week Renovate, when the checks pass
Security fixes Immediately, one PR each, marked [SECURITY] A person
Major versions (Docusaurus 4, React, actions/checkout v6, …) Their own PR A person

A Dependency Dashboard issue lists everything pending, and lets you trigger any update early.

Config choices

  • config:best-practices, which Renovate's maintainers recommend:
    • config:recommended, so @docusaurus/* packages always move together;
    • GitHub Actions pinned to commit hashes;
    • npm releases at least 3 days old, a short delay that gives malware scanners time to catch a bad release;
    • a weekly lockfile refresh;
    • automatic config migration.
  • helpers:pinGitHubActionDigestsToSemver: action pins carry a full version (# v4.2.2), so their updates join the weekly group instead of opening separate "digest" PRs.
  • group:allNonMajor + :automergeStableNonMajor:
    • Renovate auto-merges a grouped PR only when every update in it is allowed to.
    • A 0.x package's minor update therefore holds the whole group for a person to review.
  • Squash merges, labelled dependencies, like care_fe.
  • Generated workflows are left alone: daily-doc-updater.lock.yml and agentics-maintenance.yml are generated by gh aw compile, which pins its own actions and would undo Renovate's edits.

Checked with renovate-config-validator --strict (Renovate 44.252.7): valid, no migrations needed. A deliberately broken copy fails, so the check really runs.

Setup after merging (org admin)

  1. Give the Renovate app access to this repo. Go to ohcnetwork → Settings → GitHub Apps → Renovate → Configure → Repository access, and add docs.
    • Renovate is only active on care_fe today, so it's probably limited to selected repositories.
    • Do this after merging. Renovate then starts from this file instead of opening its own onboarding PR.
  2. Turn off Dependabot security updates: Settings → Advanced Security → Dependabot security updates → Disable.
    • Keep Dependabot alerts on: Renovate reads them to open its security PRs.
  3. Close the 15 open Dependabot PRs once Renovate's first PRs appear.
    • Its security and lockfile PRs cover them.
    • 9 of them fail their Cloudflare preview since the history rewrite anyway.

🤖 Generated with Claude Code

One weekly pull request for every update that is not a new major version,
plus a weekly lockfile refresh. Both merge themselves when the build passes.
Security fixes come at once, and major versions come as their own pull
requests for review. Built on config:best-practices: GitHub Actions pinned
to commits, and npm releases at least three days old.

The two workflow files that gh aw compile generates are left to gh-aw.

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

Copy link
Copy Markdown

Deploying coredocs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 31b548b
Status: ✅  Deploy successful!
Preview URL: https://59238104.coredocs.pages.dev
Branch Preview URL: https://chore-renovate.coredocs.pages.dev

View logs

This branch has not been deployed

No deployments
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