From 9c5c16caf87f39394b2542105956e2afa81ebf2e Mon Sep 17 00:00:00 2001 From: Nomads_Reach <144523850+NomadsReach@users.noreply.github.com> Date: Mon, 17 Aug 2026 16:02:56 -0400 Subject: [PATCH] Disable Git credential helpers during Gitea sync --- .github/workflows/open-gitea-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/open-gitea-pr.yml b/.github/workflows/open-gitea-pr.yml index e2d579d..78ff0d5 100644 --- a/.github/workflows/open-gitea-pr.yml +++ b/.github/workflows/open-gitea-pr.yml @@ -62,7 +62,8 @@ jobs: git config user.email "github-sync@users.noreply.github.com" git remote remove gitea >/dev/null 2>&1 || true git remote add gitea "https://${GITEA_HOST}/${GITEA_REPO}.git" - git push -f gitea "HEAD:refs/heads/${SYNC_BRANCH}" + git -c credential.helper= -c credential.useHttpPath=true \ + push -f gitea "HEAD:refs/heads/${SYNC_BRANCH}" http_code=$(curl -sS -o "$response_file" -w "%{http_code}" -X POST \ "https://${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/pulls" \