Bump github-tag-action to v7 and pin bump-version.yml actions to commit SHAs - #29
Merged
Merged
Conversation
Supersede Dependabot PR #28 (mathieudutour/github-tag-action 6.2 -> 7) and pin every action in the Bump version workflow to a full-length commit SHA, keeping the resolved release tag as a trailing comment so Dependabot can keep updating it: - actions/checkout v7 -> 3d3c42e5aac5ba805825da76410c181273ba90b1 (v7.0.1) - mathieudutour/github-tag-action v6.2 -> af99e60ce8132224b8e6ebab5023449fe256ed46 (v7.0.0) - ncipollo/release-action v1 -> 339a81892b84b4eeb0f6e744e4574d79d0d9b8dd (v1.21.0) A moved or hijacked tag can no longer change the code that runs with the repository token. github-tag-action v7 targets Node 24, which removes the Node 20 deprecation warning from every run, and keeps the inputs and outputs this workflow uses (github_token, default_bump, custom_tag, new_tag, changelog). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Supersedes #28.
Dependabot's #28 bumps
mathieudutour/github-tag-actionfromv6.2to the floatingv7tag. This PR makes the same upgrade and also pins every action in the Bump version workflow (.github/workflows/bump-version.yml) to a full-length commit SHA, with the resolved release tag as a trailing comment. The workflow runs with the repository token and pushes tags and creates releases, so a moved or hijacked tag should not be able to change the code it runs. Dependabot keeps updating SHA-pinned actions (it rewrites both the SHA and the version comment), so this adds no manual upkeep.Changes
.github/workflows/bump-version.ymlonly (3 lines):actions/checkout@v7@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1mathieudutour/github-tag-action@v6.2@af99e60ce8132224b8e6ebab5023449fe256ed46 # v7.0.0ncipollo/release-action@v1@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0Each SHA is the commit its tag points to (
git ls-remote, annotated tags dereferenced with^{}). Each is also the same commit as the floating tag it replaces (v7,v7,v1). Apart from the github-tag-action upgrade, the code that runs is unchanged. Thencipollo/release-actionSHA also matches the one downloaded by the last successful Bump version run.github-tag-action v7 compatibility
Checked by reading the upstream source at
af99e60and the migration guide. Not verified by running it.github_token,default_bump,custom_tag) and its outputs (new_tag,changelog) work as before.custom_tagstill gets thetag_prefix(v), sonew_tagstaysv1.2.0.default_bumpis not consulted whencustom_tagis set.release_branchesnow matches whole branch names (^master$,^main$). This workflow only runs on pushes tomain.fetch_all_tagsnow defaults totrue. The default shallow checkout is still enough, and neitherfetch-depth: 0nor extrapermissionsare needed.Node.js 20 is deprecated … mathieudutour/github-tag-action@v6.2warning that appears on every run.Merge timing
v7 was published on 2026-09-23 09:57 UTC. Following a 7-day cooldown for major updates, please merge on or after 2026-09-30 09:58 UTC.
Verification
git ls-remoteright before committing.uses:values are the bare SHAs, and the# vX.Y.Zsuffixes are comments..github/workflows/bump-version.yml: no findings (exit 0).pushtomain, so it cannot run on this PR. TheTestschecks here do not exercise it.Post-merge QA
On the Bump version run for the merge commit:
Download action repositorylists the three pinned SHAsBump version and push tagstep succeeds, and the Node 20 deprecation warning is gonetag: v1.2.0422 already_exists, as expected, becausecustom_tagis still1.2.0. This is the same failure seen after Bump PHPUnit to ^9.6.33 to fix CVE-2026-24765 (Dependabot alert #3) #21, Run CI tests on PHP 8.4 instead of 8.2 #23, build(deps): bump actions/cache from 4 to 6 #24 and build(deps): bump actions/checkout from 5 to 7 #25; it predates this PR.Out of scope
422 already_existsfailure (for exampleskipIfReleaseExists: true, or changing howcustom_tagis maintained)tests.yml(actions/checkout,shivammathur/setup-php,actions/cache)cooldownsetting, and an explicitpermissions: contents: write🤖 Generated with Claude Code