Skip to content

Update matchStrings regex be allow matching ci/cd input defaults

What does this MR do and why?

this mr updates the default renovate config so that it the component and opentofu version will be recognized, even if there is no explicit version: or opentofu_version: prefix in front of it

this change is useful, since users may have versions defined in gitlab inputs; e.g.:

spec:
  inputs:
    component_version:
      description: "Opentofu Gitlab CI/CD Component version"
      default: 1.1.0 # component version
    opentofu_version:
      description: "OpenTofu version"
      default: "1.9.0" # opentofu version

once merged, this scenario will be covered as well

other changes

  • updates the original matchStrings regex for the opentofu version so that it properly match unquoted versions (like the matchStrings regex for the opentofu component does)
    • in the previous implementation, an exception for matching whitespaces in the currentValue group was missing

note:

  • this change was implemented in such a way, that it wont break existing configurations

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  • run a renovate pipeline with the adjusted configuration and see it recognizes the new prefix
Edited by Alexander Weichart

Merge request reports

Loading