| name | update-linter-version |
| description | Update a linter's pinned version in its descriptor YAML. Use when upgrading a linter tool to a new release. |
Update the version of linter $linter to $version.
Delegation hint — this is a mechanical edit. If you need a sub-agent for the pin change, use version-bumper (haiku). The build step at the end can be delegated to build-runner (haiku).
Steps:
- Search
megalinter/descriptors/*.megalinter-descriptor.yml for the linter by name
- Find the version ARG in the
install.dockerfile section (e.g., ARG PIP_TOOL_VERSION=X.Y.Z) or version pin in pip/npm arrays
- Update the version, preserving the renovate comment format:
ARG PIP_TOOL_VERSION=<new_version>
- If no version was specified, check the tool's package registry for the latest
- Run
make megalinter-build to regenerate Dockerfiles with the new version
- Do not update
CHANGELOG.md — linter version upgrades are logged automatically by the auto-upgrade workflow under Linter versions upgrades
- To test the updated version in CI, write
TEST_KEYWORDS=<linter>_test in the commit message body