release: publish gitea allowlist and harden bundle deploy

This commit is contained in:
Codex Release Bot
2026-07-09 05:12:54 +08:00
parent 74149e0d90
commit 279259092d
30 changed files with 1372 additions and 131 deletions
+3
View File
@@ -13,6 +13,7 @@ BAD_PATH_PARTS = [
".venv",
".venv-py314",
".venv-py312-codex",
".venv-codex-test",
"venv",
".pytest_cache",
"__pycache__",
@@ -38,6 +39,8 @@ def bad_path(name: str) -> bool:
wrapped = f"/{name}/"
if any(f"/{part}/" in wrapped for part in BAD_PATH_PARTS):
return True
if any(part.startswith(".venv-") for part in name.split("/")):
return True
if any(name.endswith(suffix) for suffix in BAD_EXACT_SUFFIXES):
return True
if any(name.endswith(suffix) for suffix in BAD_FILE_SUFFIXES):