fix: allow plain http (#559)

This commit is contained in:
Adrian Lyjak
2025-07-29 14:20:53 -04:00
committed by GitHub
parent 79b8bdcd95
commit 7cc1280818
+2 -2
View File
@@ -97,8 +97,8 @@ if __name__ == "__main__":
start_http_server(settings.prometheus_port)
repo_url = os.environ.get("REPO_URL", "")
if not repo_url.startswith("https://"):
raise ValueError("Git remote must be valid and over HTTPS")
if not repo_url.startswith("https://") and not repo_url.startswith("http://"):
raise ValueError("Git remote must HTTP(S)")
repo_token = os.environ.get("GITHUB_PAT")
work_dir = Path(os.environ.get("WORK_DIR", RC_PATH))
work_dir.mkdir(exist_ok=True, parents=True)