diff --git a/.gitlab/scripts/renovate-post-upgrade.sh b/.gitlab/scripts/renovate-post-upgrade.sh
new file mode 100644
index 0000000000000000000000000000000000000000..a3bfbda99a2c67a3d0dfe0c03883713f2b6e0b44
--- /dev/null
+++ b/.gitlab/scripts/renovate-post-upgrade.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env sh
+
+# This script is just used to add the `latest_version` to the
+# list of supported versions because natively that is
+# cumbersome to achieve.
+
+script_dir="$(dirname "$0")"
+project_dir="$script_dir/../.."
+
+yq --inplace '.".data".supported_versions = ([.".data".latest_version] + .".data".supported_versions | unique)' "$project_dir/opentofu_versions.yaml"
+
+"$script_dir/update-opentofu-versions.sh"