From 5445cc3bd640926b3de77c60ca53eb4f4d844e31 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Sun, 25 Oct 2026 07:57:54 +0700 Subject: [PATCH] fix(eng): stop at an outside releases folder where SonarCloud can see it fail() exits, but the taint analysis cannot tell, so S8707 stayed open for assert-release.py; the check now raises SystemExit itself, like the other scripts. Co-Authored-By: Claude Opus 5.5 --- eng/assert-release.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/assert-release.py b/eng/assert-release.py index 71a102b..95efaec 100644 --- a/eng/assert-release.py +++ b/eng/assert-release.py @@ -25,7 +25,8 @@ def releases_folder(name: str) -> Path: """The folder named on the command line; it must be inside the repository (CI passes "Releases").""" path = os.path.realpath(name) if not path.startswith(ROOT + os.sep): - fail(f"{name} is outside the repository") + print(f"::error::{name} is outside the repository") + raise SystemExit(1) return Path(path)