From 3611b2cf9e0533f2924ab9b6734194827fe26638 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Fri, 17 Jul 2026 11:31:30 +0300 Subject: [PATCH] Revert "fix: support headless Gitea credentials" This reverts commit efd1cf4ef68ebc4d39287befabd49ec048af213d. --- scripts/ralph_gitea_sync.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/scripts/ralph_gitea_sync.py b/scripts/ralph_gitea_sync.py index ef40317..d181503 100644 --- a/scripts/ralph_gitea_sync.py +++ b/scripts/ralph_gitea_sync.py @@ -31,13 +31,6 @@ STATUS_LABELS = { def credential_for(host: str) -> tuple[str, str]: - # Prefer explicitly injected process credentials for headless workers. They - # are never written to the repo or emitted in logs. - username = os.environ.get("GITEA_USERNAME") - password = os.environ.get("GITEA_TOKEN") or os.environ.get("GITEA_PASSWORD") - if password: - return username or "", password - result = subprocess.run( ["git", "credential", "fill"], input=f"protocol=https\nhost={host}\n\n",