From 2e0fc02f2c25a7cd14489457efe606a3dde01100 Mon Sep 17 00:00:00 2001 From: "privilegedescalation-engineer[bot]" Date: Tue, 24 Mar 2026 22:57:41 +0000 Subject: [PATCH] fix(ci): add end anchor to SemVer regex in artifacthub validation The regex `^\d+\.\d+\.\d+` was missing a `$` end anchor, allowing versions like `1.2.3.4` or `1.2.3extra` to pass validation. Fixed to `^\d+\.\d+\.\d+$` for strict X.Y.Z matching. Co-Authored-By: Paperclip --- .github/workflows/plugin-ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/plugin-ci.yaml b/.github/workflows/plugin-ci.yaml index cb132b1..07e8947 100644 --- a/.github/workflows/plugin-ci.yaml +++ b/.github/workflows/plugin-ci.yaml @@ -48,7 +48,7 @@ jobs: # Version must be SemVer version = pkg.get("version", "") - if version and not re.match(r'^\d+\.\d+\.\d+', str(version)): + if version and not re.match(r'^\d+\.\d+\.\d+$', str(version)): errors.append(f"version '{version}' is not SemVer (expected X.Y.Z)") # Headlamp plugin annotations