Skip to content

Fix release tag validation anchoring - #1207

Open
dajiaohuang wants to merge 1 commit into
actions:mainfrom
dajiaohuang:fix/anchor-release-tag-validation
Open

dajiaohuang wants to merge 1 commit into
actions:mainfrom
dajiaohuang:fix/anchor-release-tag-validation

Conversation

@dajiaohuang

Copy link
Copy Markdown

The release helper's semver_tag_regex was anchored only at the end, so an invalid input such as prefix-v1.2.3 passed validation. The script then created that local tag before failing to derive a major-version tag. Anchoring the pattern at the start rejects invalid prefixes before any release mutation.

Validation: synthetic regex cases accept v1.2.3 and reject prefix-v1.2.3 and v1.2.3-suffix; git diff --check passes. I did not execute the release script or create/push any release tags.

@dajiaohuang
dajiaohuang requested a review from a team as a code owner October 21, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant