From b37f1e822a9e74bffd916c3381d8339e4ac4f5ae Mon Sep 17 00:00:00 2001 From: ledoyen Date: Mon, 25 Nov 2024 13:59:16 +0100 Subject: [PATCH] Fix authentication when token is an app installation one --- .../toolkit/thirdparty/github/GitHubAuthenticationHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/lernejo/korekto/toolkit/thirdparty/github/GitHubAuthenticationHolder.kt b/src/main/kotlin/com/github/lernejo/korekto/toolkit/thirdparty/github/GitHubAuthenticationHolder.kt index cfc1e69..f93a7b4 100644 --- a/src/main/kotlin/com/github/lernejo/korekto/toolkit/thirdparty/github/GitHubAuthenticationHolder.kt +++ b/src/main/kotlin/com/github/lernejo/korekto/toolkit/thirdparty/github/GitHubAuthenticationHolder.kt @@ -60,7 +60,7 @@ data class TokenGitHubAuthentication(val token: String) : GitHubAuthentication { override fun > configure(command: TransportCommand) { command - .setCredentialsProvider(UsernamePasswordCredentialsProvider(token, "")) + .setCredentialsProvider(UsernamePasswordCredentialsProvider("x-access-token", token)) } override fun configure(conn: HttpURLConnection) {