From a662ba4ff27dc3253e35574187fa9e94f1ca598a Mon Sep 17 00:00:00 2001 From: Sabu Siyad Date: Mon, 8 Jun 2026 23:23:40 +0530 Subject: [PATCH] fix(build): Validate platform is arm64 or x86_64 (cherry picked from commit 904124b22f8c5f0d4d19cd8127af21c6480c55fa) --- agent/builder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/builder.py b/agent/builder.py index 06133c01..fd45f7a9 100644 --- a/agent/builder.py +++ b/agent/builder.py @@ -528,6 +528,8 @@ def __init__( self.image_repository = image_repository self.image_tag = image_tag self.registry = registry + if platform not in ("arm64", "x86_64"): + raise ValueError(f"Invalid platform '{platform}'") self.platform = platform self._job_context = JobContext()