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-infraadditionally 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:
vulnerabilityAlertsrun at any time (not just the weekly window), labelledsecurity. - Lockfile maintenance (apps): refreshes
pnpm-lock.yamlweekly.
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):
- 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.)
- Credential: a PAT with Code (read/write) + PR-contribute on the
ResortWiserepos, stored as the secretRENOVATE_TOKENin therenovatevariable group. Renovate authors its PRs as that identity. - Schedule:
renovate.ymlruns weekly (Mondays 05:00 UTC) and callsRenovateMe@1over the five repos; Renovate reads each repo'srenovate.jsonand opens grouped update PRs. Run it on demand with theforceNow=trueparameter (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 therenovategroup 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.