From 811f9ce6877466d571415630484da3273004b431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lemuel=20Roberto=20Bonif=C3=A1cio?= Date: Thu, 29 Oct 2026 19:49:02 -0300 Subject: [PATCH] Configure Renovate for Go, Docker and Actions Every pin in the tree -- go.mod, the compose and Dockerfile images, the action SHAs, pg_tle -- has so far been bumped by hand, which in practice means not bumped. Renovate watches all of them on a weekly schedule, keeps go.sum tidy, and groups the noisy updates (action SHAs, image digests, golang.org/x) so review stays cheap. cel-go and PostgreSQL majors get a note in their PR body rather than a routine path: cel-go is the conformance oracle and CLAUDE.md keeps it exactly pinned, so its bump has to be a deliberate re-measurement with oracle.Version moved alongside. pg_tle is pinned as an ARG Renovate cannot see, so a regex manager tracks it in the Dockerfile and the install guide together. --- renovate.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..946752b --- /dev/null +++ b/renovate.json @@ -0,0 +1,85 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + ":disableRateLimiting", + ":docker", + ":enableVulnerabilityAlerts", + ":pinAllExceptPeerDependencies", + ":rebaseStalePrs", + ":renovatePrefix", + ":timezone(America/Sao_Paulo)", + "config:best-practices", + "schedule:earlyMondays", + "security:openssf-scorecard" + ], + "commitMessageAction": "Bump", + "commitMessageExtra": "", + "commitMessageLowerCase": "never", + "commitMessageTopic": "{{depName}}", + "semanticCommits": "disabled", + "postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"], + "vulnerabilityAlerts": { + "addLabels": ["security"] + }, + "customManagers": [ + { + "description": "Track the pg_tle release built into the validation image and named in the install guide", + "customType": "regex", + "managerFilePatterns": [ + "/^docker/pg_tle\\.Dockerfile$/", + "/^docs/INSTALL\\.md$/" + ], + "matchStrings": [ + "ARG PG_TLE_VERSION=(?v\\d+\\.\\d+\\.\\d+)", + "against pg_tle (?v\\d+\\.\\d+\\.\\d+)" + ], + "depNameTemplate": "aws/pg_tle", + "datasourceTemplate": "github-releases", + "versioningTemplate": "semver" + } + ], + "packageRules": [ + { + "description": "One PR for all GitHub Actions bumps, not one per action per digest", + "matchManagers": ["github-actions"], + "matchDepTypes": ["action"], + "groupName": "github-actions", + "commitMessageTopic": "GitHub Actions" + }, + { + "description": "One PR for image digest refreshes", + "matchDatasources": ["docker"], + "matchUpdateTypes": ["digest"], + "groupName": "docker digests" + }, + { + "description": "The go directive and the golang image of the containerised suite move together", + "matchDatasources": ["golang-version", "docker"], + "matchDepNames": ["go", "golang"], + "matchUpdateTypes": ["major", "minor"], + "groupName": "Go toolchain" + }, + { + "description": "One PR for the golang.org/x modules", + "matchManagers": ["gomod"], + "matchPackageNames": ["golang.org/x/**"], + "groupName": "golang.org/x" + }, + { + "description": "cel-go is the conformance oracle and stays exactly pinned (CLAUDE.md). Its PR is a deliberate re-measurement, never a routine merge.", + "matchPackageNames": ["cel.dev/cel-go"], + "prBodyNotes": [ + "Bumping cel-go moves the conformance oracle: update `internal/oracle.Version` in the same commit (a test fails while they differ), re-run the full suite, and re-measure any case whose verdict changes before merging." + ] + }, + { + "description": "A PostgreSQL major changes the server every test and release check runs against", + "matchDatasources": ["docker"], + "matchPackageNames": ["postgres"], + "matchUpdateTypes": ["major"], + "prBodyNotes": [ + "A PostgreSQL major moves the server CI, the release smoke test and the pg_tle image all run on: check that the pinned pg_tle release builds against it before merging." + ] + } + ] +}