Skip to content

Commit 375372b

Browse files
authored
GH-14927 : [Dev] Crossbow submit does not work with fine grained PATs (#14928)
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 <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 84101a5 commit 375372b

File tree

1 file changed

+1
-1
lines changed
  • dev/archery/archery/crossbow

1 file changed

+1
-1
lines changed

dev/archery/archery/crossbow/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def credentials(self, url, username_from_url, allowed_types):
200200

201201
if (allowed_types &
202202
pygit2.credentials.GIT_CREDENTIAL_USERPASS_PLAINTEXT):
203-
return pygit2.UserPass(self.token, 'x-oauth-basic')
203+
return pygit2.UserPass('x-oauth-basic', self.token)
204204
else:
205205
return None
206206

0 commit comments

Comments
 (0)