From 375372b7ca64a8e9ce8a0fabb5e3c5637ba895b3 Mon Sep 17 00:00:00 2001 From: Jacob Wujciak-Jens Date: Tue, 13 Dec 2022 15:45:48 +0100 Subject: [PATCH] GH-14927 : [Dev] Crossbow submit does not work with fine grained PATs (#14928) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The old variant with token passed as name does only work for classic PATS, passing the token as password works for both classic and fine grained PATs. * Closes: #14927 Authored-by: Jacob Wujciak-Jens Signed-off-by: Raúl Cumplido --- dev/archery/archery/crossbow/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/archery/archery/crossbow/core.py b/dev/archery/archery/crossbow/core.py index d5ce6143136ae..24f68b4c4a614 100644 --- a/dev/archery/archery/crossbow/core.py +++ b/dev/archery/archery/crossbow/core.py @@ -200,7 +200,7 @@ def credentials(self, url, username_from_url, allowed_types): if (allowed_types & pygit2.credentials.GIT_CREDENTIAL_USERPASS_PLAINTEXT): - return pygit2.UserPass(self.token, 'x-oauth-basic') + return pygit2.UserPass('x-oauth-basic', self.token) else: return None