Skip to content

Commit 57f3004

Browse files
committed
chore/security : reintroduce initial regex
1 parent 07671b1 commit 57f3004

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
fi
5050
5151
# Validate version format (semantic versioning)
52-
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+(\.[0-9]+)?([-][A-Za-z0-9\.]+)*$ ]]; then
52+
if [[ ! "$VERSION" =~ ^([0-9]+\.[0-9]+(\.[0-9]+)?)(-[A-Za-z0-9\.]+)*$ ]]; then
5353
echo "::error::Invalid version format: $VERSION"
5454
echo "::notice::Expected semantic versioning format (e.g., 1.2.3, 1.2.3-beta)"
5555
exit 1

0 commit comments

Comments
 (0)