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 <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 5.5 committed 2026-10-25 08:02:08 +07:00
1 parent 9e06e7cadd
commit 5445cc3bd6
1 file changed
+2 -1
+2 -1
View File
@@ -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)