What should @v1 mean? A versioning guide for GitHub Actions authors
When someone uses your action at @v1, keeping that alias and its immutable releases consistent is up to you. Here is how action versioning breaks in practice and how gh-actions-version helps check and maintain it.
When someone uses your action at @v1, it's up to you to make sure v1 points to the latest compatible patch. gh-actions-version checks those aliases and the immutable releases behind them.
In February I wrote about automatic versioning for GitHub Actions authors. I use actions-semver-checker in my release workflows, but sometimes I just want to inspect a repo from the command line and fix one tag. That's why I built the CLI. The Action still runs PowerShell, but my plan is to use the new Go implementation as its engine soon.
It's easy to make mistakes
GitHub's release documentation and the Actions toolkit guide describe the convention: give each release its own full-version tag, such as v1.2.0, move the major alias v1 for every compatible update and move the minor alias v1.2 for patches in that minor. You can maintain the aliases as tags or branches. GitHub's guidance for immutable releases explains why only the full-version tag should have a Release attached to it.
The runner doesn't know about any of this. It resolves the literal ref after @: v1, stable, main or a full commit SHA. It won't search your v1.* tags to work out which patch you meant, and it doesn't care which branching strategy you use to get there. Keeping the aliases correct is entirely up to the author, and when the release is a handful of manual git commands and a few clicks in the release UI, a step is easily skipped. These are mistakes that keep showing up in action repositories.
Forgetting to move the major alias. You tag v1.2.0, publish the release and close the laptop. v1 still points to v1.1.3. Everyone using @v1 keeps running the old code, and nothing tells them or you. If you maintain minor aliases, there is also a v1.2 to create. The release page looks fine; the problem only shows up when someone compares the commits behind the tags.
Creating a v3 branch for the next major version. You start work on a breaking change in a branch called v3. From that moment uses: owner/action@v3 resolves to your unfinished work. When you're done, you publish the v3.0.0 release and, out of habit, a v3 tag as well. Now the repository has a branch and a tag with the same name, and it's no longer obvious which one a workflow gets. If you also published a Release for the v3 tag, that Release belongs on v3.0.0. With immutable releases enabled, a Release on v3 pins the floating alias in place for good. Name development branches releases/v3 or next, never after the alias you plan to publish.
Forgetting the existing releases after enabling immutable releases. Turning on immutable releases only affects releases you publish from then on. Every release you published before that keeps its mutable tag, which can still be moved or deleted. To protect those versions, you have to republish them as immutable releases. Do that only after you've cleaned up the history: once a release is immutable, its tag and assets can't be fixed later.
How widespread are these mistakes?
On 29 November 2026 I ran gh-actions-version v0.0.4 in read-only mode against checkout, setup-node, cache, upload-artifact, Docker's build-push-action and Azure login, using --no-config so all six were checked against the same built-in policy.
All six had findings. Most importantly, every repository still had published releases that were mutable.
All 58 visible actions/checkout releases reported immutable: false, including the latest: v7.0.1. setup-node has a mixed history: v1.0.0 was mutable and v7.1.0 was immutable. Many authors do now know that enabling immutability leaves existing releases as they are.
In these repos four floating tags pointed to a different commit than the expected patch. Two were behind, including actions/cache@v2, one commit behind v2.1.8. One had diverged. The fourth, Azure/login@v1.1, was ahead of v1.1.2 by three commits. Before moving that alias, you'd want to know what's in those three commits. For Docker's build-push-action, things weren't any different.
Six repositories are not enough to measure how widespread these issues are. But the sample includes GitHub's checkout action, where none of the 58 releases checked were immutable, and Microsoft's Azure/login, where v1.1 points three commits beyond v1.1.2. If GitHub, Microsoft and Docker have versioning inconsistencies in their actions, it's no surprise if many of the 30,000-plus actions in the Marketplace have them too.
Keep the version in the workflow and the commit in the lockfile
As a consumer of an action, you depend on its author to keep their tags in place. Until recently, the only way to stop a moved or replaced tag from reaching your workflow was to pin a commit SHA in the workflow itself.
For years GitHub recommended replacing the version in workflow YAML with a full commit SHA. That left Dependabot and Renovate to work out which version to suggest next. Here's the same checkout step with and without a version comment:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Both steps run the same commit. Dependabot finds the version v7.0.1 by looking up tags on that commit. The Renovate extractor treats the bare SHA as unversioned. In the second example it reads # v7.0.1 to find the version to update.
Workflow lockfiles finally solve that part of the supply chain on the consumer's side, while keeping a readable version in the workflow. After onboarding your workflow, you can simply write this instead:
- uses: actions/checkout@v7.0.1
To pin that step, use gh actions-lock . It onboards the workflow, then commit the generated .github/workflows/actions.lock. Here's what the checkout entry looks like:
dependencies:
'actions/checkout@v7.0.1':
ref: 'v7.0.1'
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
owner_id: 44036562
repo_id: 197814629
The entry keeps the version tag alongside the commit SHA and the numeric IDs of the owner and repository. The same file records transitive action dependencies. GitHub uses the locked commit even if the ref moves. And it leaves no doubt for Dependabot or Renovate about which version to use when looking for updates.
A lockfile protects a workflow once its dependencies are locked. It can't help when the tag was already replaced before you locked it, or in the many workflows that haven't been onboarded yet. That part is up to the action author.
As an author, publish immutable releases. An immutable release freezes its tag and assets. You still need to review what goes into the release in the first place, but if someone later compromises your account, they can't replace the code behind your published versions.
There's one caveat: composite actions need extra care. Every uses: in your action.yml becomes a dependency of every workflow that calls your action. Only reference versions that are backed by an immutable release, or pin the nested action to a full commit SHA:
runs:
using: composite
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
With @v7 in that step, your consumers get whatever the upstream v7 tag points to when their unlocked workflow runs. When they lock their workflow in the future, the tag may also have changed. If the action is compromised, your action will trigger a download for the compromised version instead.
What gh-actions-version checks
gh actions-version verify is read-only. Version 0.0.4 has 26 rules, listed below in the order the CLI checks them. Where a rule has a tag and a branch variant, your configuration determines which one applies.
| Rules, in evaluation order | What they check |
|---|---|
action_metadata_required |
Checks the action manifest and README for a Marketplace listing. The manifest needs a name, description and branding (branding.icon and branding.color). Branding is optional for an unlisted action. |
branch_should_be_tag, tag_should_be_branch |
Reports refs that don't follow your configured tag or branch strategy. |
duplicate_floating_version_ref, duplicate_latest_ref, duplicate_patch_version_ref |
Finds names that exist as both a tag and a branch. Checks floating versions first, then latest, then full versions. |
duplicate_release |
Finds multiple release entries for the same tag, including drafts. |
patch_release_required |
Looks for a GitHub Release for each full version. If a floating line has no full version yet, the tool proposes a starting tag and release. |
immutable_releases_enabled, release_should_be_published, release_should_be_immutable |
Checks the repository's immutability setting, then whether each full-version release has been published and whether GitHub reports it as immutable. |
floating_version_no_release, highest_patch_release_should_be_latest |
Flags releases attached to floating aliases. Checks that the highest numeric published, non-prerelease patch has GitHub's Latest badge. |
major_branch_tracks_highest_patch, major_tag_tracks_highest_patch; major_branch_missing, major_tag_missing |
Compares each major alias with the commit of its highest eligible patch, then reports any missing major aliases. |
minor_branch_tracks_highest_patch, minor_tag_tracks_highest_patch; minor_branch_missing, minor_tag_missing |
Checks the target and existence of each minor alias. For example, v1.2 should point to the highest eligible v1.2.x patch. |
patch_tag_missing |
Finds floating lines without a full patch tag when release checks are disabled. With release checks enabled, patch_release_required handles this case. |
latest_branch_tracks_global_highest, latest_tag_tracks_global_highest |
Checks the target of an existing @latest alias against the highest eligible patch across the repo. You can use GitHub's Latest badge without creating this alias. |
marketplace_publication_required |
Checks that the selected release is listed on Marketplace. If the result is inconclusive, check the listing yourself. |
ignore_entries_valid |
Reports expired exceptions and entries that no longer match anything. |
The checker can compare commits, not behavior; you still need integration tests to verify that existing workflows work with a new minor release. Some findings also need to be fixed out of order: on an existing repo, clean up releases on floating tags before enabling immutability.
gh-actions-version allows you to store its configuration alongside your action. Put a file called action-version.yml in the repository root or .github/. Set reporting (warning, error, none) separately from fixing (manual, auto), by concern, rule or individual finding. For example, these are overrides for a private action that doesn't promise minor aliases:
version: 1
floating-versions-use: tags
concerns:
minor: { level: none }
marketplace: { level: none }
If you maintain v1 as a branch, set floating-versions-use: branches.
Omitted settings inherit the defaults. Most built-in concerns report errors and allow the CLI to apply fixes when you run fix. Set fix: manual on anything you want to handle yourself. The CLI will print instructions for those rules even in interactive mode.
One repository, several version families
If you maintain multiple actions in a single repository, you can version each action separately. This requires some creativity when tagging your releases. Here's an example from gh-actions-lock:
- uses: github/gh-actions-lock@verify/v0.5.1
verify/v0.5.1 is the whole tag name. An updater looking for the next release in this example needs to compare tags in the verify/ family.
Dependabot already compares versions within each family. This convention surfaced when gh-actions-lock adopted Dependabot's behaviour, just after its v0.5.1 release. In gh-actions-version v0.0.4 this is still planned; you can follow the work in PR #55.
Adding the checker to an existing action
Onboarding your project for gh-actions-version is easy, you install the extension, then run the setup command. However, if your action has been around for a while, fixing all the issues, may not be as straightforward. I've tried to provide you with a clear set of steps to follow:
- Install the extension with
gh extension install jessehouwing/gh-actions-version. - Run
gh actions-version setup. Choose warnings and manual fixes, then review the generated policy.--yesaccepts the built-in defaults. For a private action, turn Marketplace checks off. - Run
gh actions-version verify. Read the findings and skipped checks. No refs or releases change. - Decide what to preserve. Record the current tag and branch targets, back up release data and assets, and check which drafts you want to keep. For an alias that's ahead of its expected patch, inspect the commits you'd remove from that branch or tag.
- Try one repair.
gh actions-version fix --mode manualprints instructions. To let the CLI perform a single fix, make only the selected rule eligible (fix: auto), then trygh actions-version fix v1 --rule major_tag_tracks_highest_patch --mode interactive. Review the proposed target before confirming. - Start enforcing full-version releases. Review the patch tags that need a release and the drafts that are ready to publish. Keep release fixes manual for now: some can publish drafts or enable repository immutability.
- Clean up floating releases before enabling immutability. Resolve
floating_version_no_release: remove any unwanted mutable Release onv1, keeping thev1alias itself. Publishing an immutable release onv1freezes that tag. Even deleting the release won't let you reusev1for the next patch. Enable the repository setting only after you've checked the full-version tags, releases and assets you want to keep. - Convert the releases you've chosen to keep. The CLI republishes them, so check token permissions and any workflows triggered by release events first. After conversion, verify that GitHub reports each retained release as immutable.
- Update the latest release on GitHub Marketplace manually if you list your action there.
- Switch the checks you rely on from warning to error and add
verifyto CD. Test the action before publishing. Run the read-only version check after the release workflow has moved the aliases. - Consider automatic fixes last. Preview the scope you intend to automate, for example
gh actions-version fix v1 --rule major_tag_tracks_highest_patch --mode auto --dry-run. Drop--dry-runonly when you trust those repairs. Leave publication, deletion, or any other decision you want a person to make onmanual.
Not every finding can be fixed. If you enabled immutable releases earlier and published a release on the wrong commit, that tag is frozen. Use gh actions-version ignore to record those versions in your config, so the CLI never tries to repair them automatically:
gh actions-version ignore 'v2.3.1' --scope all --reason "immutable release on the wrong commit"
You may also decide to leave very old versions alone. Quoted wildcards ignore a whole range:
gh actions-version ignore 'v0.*' --scope all --reason "unsupported pre-1.0 releases"
You can find installation and configuration examples in the CLI repository and the Action repository. I also cover release workflows and dependency security in my GitHub Actions training.
gh-actions-version is still in preview. If a rule flags a tag you maintain deliberately, share how you use it. Feedback is welcome!