Skip to content

Commit

Permalink
Fix authentication when token is an app installation one
Browse files Browse the repository at this point in the history
  • Loading branch information
ledoyen committed Nov 25, 2024
1 parent a2a6dc0 commit b37f1e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ data class TokenGitHubAuthentication(val token: String) : GitHubAuthentication {

override fun <R, C : GitCommand<R>> configure(command: TransportCommand<in C, R>) {
command
.setCredentialsProvider(UsernamePasswordCredentialsProvider(token, ""))
.setCredentialsProvider(UsernamePasswordCredentialsProvider("x-access-token", token))
}

override fun configure(conn: HttpURLConnection) {
Expand Down

0 comments on commit b37f1e8

Please sign in to comment.