From 7cc1280818ea45bb012b3a3db36c577b5c5933c6 Mon Sep 17 00:00:00 2001 From: Adrian Lyjak Date: Tue, 29 Jul 2025 14:20:53 -0400 Subject: [PATCH] fix: allow plain http (#559) --- docker/run_autodeploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/run_autodeploy.py b/docker/run_autodeploy.py index 211aa2c..86f88e7 100644 --- a/docker/run_autodeploy.py +++ b/docker/run_autodeploy.py @@ -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)