[llvm] [GitHub] Fix authentication for release workflow git push (PR #212634)
Navaneeth Shanmugasundaram via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 08:53:59 PDT 2026
https://github.com/navaneethshan updated https://github.com/llvm/llvm-project/pull/212634
>From 3650bf83ab0714594344d004260b6818562d23ff Mon Sep 17 00:00:00 2001
From: nshanmug <nshanmug at qti.qualcomm.com>
Date: Tue, 28 Jul 2026 14:38:02 -0700
Subject: [PATCH] [GitHub] Fix authentication for release workflow git push
Update the push URL format to use GitHub's required authentication
format with the 'x-access-token' prefix. GitHub now requires:
https://x-access-token:{token}@github.com/{repo}
instead of the deprecated format:
https://{token}@github.com/{repo}
Without this change, the release workflow fails when attempting to
push branches with the error:
fatal: could not read Password for 'https://***@github.com':
No such device or address
This occurs because Git attempts to prompt for credentials in the
non-interactive GitHub Actions environment when the token format
is not recognized.
Fixes the /cherry-pick command in the issue-release-workflow.
---
llvm/utils/git/github-automation.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/utils/git/github-automation.py b/llvm/utils/git/github-automation.py
index 45b73b22c38ff..56aa8ce952193 100755
--- a/llvm/utils/git/github-automation.py
+++ b/llvm/utils/git/github-automation.py
@@ -539,7 +539,7 @@ def issue(self) -> github.Issue.Issue:
@property
def push_url(self) -> str:
- return "https://{}@github.com/{}".format(
+ return "https://x-access-token:{}@github.com/{}".format(
self.branch_repo_token, self.branch_repo_name
)
More information about the llvm-commits
mailing list