Skip to content

Commit

Permalink
apacheGH-14927 : [Dev] Crossbow submit does not work with fine graine…
Browse files Browse the repository at this point in the history
…d PATs (apache#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: apache#14927

Authored-by: Jacob Wujciak-Jens <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
  • Loading branch information
assignUser authored Dec 13, 2022
1 parent 84101a5 commit 375372b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/archery/archery/crossbow/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 375372b

Please sign in to comment.