Change GitHub Action version

MSAL

Change the version of a GitHub Action in any workflow.

org.openrewrite.github.ChangeActionVersion

Required

Name of the action to update.

Version to use.

Optional

Restricts the change by the existing uses: ref. When omitted, the version is changed regardless of how the action is pinned (the default; commit SHA pins are rewritten). When set to an empty string, only references that are not pinned to a 40-character commit SHA are changed, preserving deliberate SHA pins. When set to a specific commit SHA, only references pinned to exactly that SHA are changed.

mod run . --recipe=org.openrewrite.github.ChangeActionVersion \ -P action=actions/setup-java \ -P version=v4

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.