Skip to content

Dependency-update automation (Renovate)

Spec 109 / RW-757. Every ResortWise repository carries a renovate.json so dependency and security updates arrive as grouped, scheduled pull requests — subject to the same branch policy (Farzin-required) and CI gates as any human PR — instead of manual, ad-hoc bumps.

What the config does (all repos)

  • Schedule: before 6am on monday (America/New_York) — one quiet weekly window.
  • Grouping: all non-major (minor/patch/pin/digest) updates collapse into a single "non-major dependencies" PR; majors stay separate so each potentially-breaking bump is reviewed on its own. resortwise-infra additionally groups Terraform provider/module bumps.
  • Throughput caps: prConcurrentLimit: 3, prHourlyLimit: 2 — bounded review load.
  • Dependency Dashboard: a tracking issue lists everything pending/rate-limited.
  • Security: vulnerabilityAlerts run at any time (not just the weekly window), labelled security.
  • Lockfile maintenance (apps): refreshes pnpm-lock.yaml weekly.

Managers are auto-detected per repo: npm/pnpm (resortwise-apps), Gradle (resortwise-services-core, resortwise-shared), Terraform + Dockerfile + Azure Pipelines (resortwise-infra).

How it runs on Azure DevOps (Renovate Me + a scheduled pipeline)

Renovate does not run itself. On Azure DevOps it is driven by the Renovate Me marketplace extension (task RenovateMe@1), which runs the Renovate CLI from a pipeline. The wiring lives in resortwise-infra/renovate.yml (pipeline resortwise-renovate):

  1. Extension (one-time, org admin): install Renovate Me (publisher: Jean-Yves Couet) from the Azure DevOps marketplace. (The "Mend Bolt"/"Mend for Azure DevOps" extensions are SCA security scanners — they do NOT open dependency-update PRs.)
  2. Credential: a PAT with Code (read/write) + PR-contribute on the ResortWise repos, stored as the secret RENOVATE_TOKEN in the renovate variable group. Renovate authors its PRs as that identity.
  3. Schedule: renovate.yml runs weekly (Mondays 05:00 UTC) and calls RenovateMe@1 over the five repos; Renovate reads each repo's renovate.json and opens grouped update PRs. Run it on demand with the forceNow=true parameter (which clears the per-repo schedule for that run).

Because every repo has a Farzin-required branch policy, Renovate's PRs cannot merge without review — they queue for approval and must pass every CI gate exactly like a human PR.

Optional: set a GITHUB_COM_TOKEN (a read-only github.com PAT) in the renovate group so Renovate can attach release notes/changelogs to PR bodies. Without it, updates still open; only the changelog section is skipped.

Verified (RW-930)

A forced run opened grouped update PRs across all five repos — e.g. chore(deps): update non-major dependencies in specs/shared/services-core, the terraform providers/modules group + a grafana major in infra, and gradle-major PRs split out separately — each blocked by the branch policy until Farzin approves and subject to the full gate set. The automation is live.