From b2d62a24d2ed589d9e5e497f9c468299c71d1f3d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 8 Mar 2026 22:18:58 +0000 Subject: [PATCH 1/2] Add renovate.json --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..5db72dd --- /dev/null +++ b/renovate.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended" + ] +} From 00d11ddcb99a50d232f90aaa75a688035cdf8b0b Mon Sep 17 00:00:00 2001 From: Thomas Gaudin Date: Sun, 8 Mar 2026 23:25:55 +0100 Subject: [PATCH 2/2] Add custom matcher to Renovate to update PHP versions in update.sh --- renovate.json | 31 ++++++++++++++++++++++++++++++- update.sh | 1 + 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/renovate.json b/renovate.json index 5db72dd..61a23eb 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,35 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:recommended" + "config:best-practices" + ], + "dependencyDashboard": true, + "timezone": "Europe/Paris", + "osvVulnerabilityAlerts": true, + "customManagers": [ + { + // https://docs.renovatebot.com/modules/manager/regex/ + "customType": "regex", + "managerFilePatterns": ["update.sh"], + "matchStrings": [ + "# renovate: datasource=(?.*?) depName=(?.*?)\\sversions=\\([0-9\\. ]+?(?\\S+)\\)" + ] + } + ], + "packageRules": [ + { + "matchPackageNames": ["php"], + "matchDatasources": ["docker"], + // Override helpers:pinGitHubActionDigests from config:best-practices since we explicitely + // want the latest PHP patch version and not a pinned Docker image + "pinDigests": false, + "prBodyNotes": [ + "**Do NOT merge this PR as-is!**", + "", + "This PR is only a reminder that a new PHP version is available, however Renovate doesn't allow us to do everything we need to do.", + "You need to _add_ the new PHP version to the `versions` array in `update.sh` instead of replacing the last.", + "You also need to update the `README.md` to list supported versions." + ] + } ] } diff --git a/update.sh b/update.sh index 9d4351c..de13108 100755 --- a/update.sh +++ b/update.sh @@ -2,6 +2,7 @@ set -euo pipefail +# renovate: datasource=docker depName=php versions=(7.3 7.4 8.0 8.1 8.2 8.3 8.4) for version in "${versions[@]}"; do