Upgrade Python version in Mend .whitesource files
ProprietaryUpdate Python version references in Mend (formerly WhiteSource) .whitesource repository configuration files to a target version. Bumps python<MAJOR><MINOR> and python<MAJOR>.<MINOR> tokens in the settingsInheritedFrom value (e.g. "org/whitesource-config@python310" -> ...@python312) and in the python.path scan setting (a Unified Agent parameter, so both bare executable names such as python3.9 and full paths such as /usr/bin/python3.9 are covered). Only versions older than the target are changed; a version already newer is left as-is.
org. openrewrite. python. migrate. UpgradePythonWhitesourceConfigRequired
The target Python version as MAJOR.MINOR (for example 3.12). Any patch component is dropped; the minor release is the upgrade target.
mod run . --recipe= org. openrewrite. python. migrate. UpgradePythonWhitesourceConfig \
-P version=3.12Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.