Skip to content

Commit 44a8b79

Browse files
author
Marcos.Cela
committed
fix: JWTTokenProvider has an incorrect value for the returned authorization header
more info: https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app
1 parent cdede29 commit 44a8b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/kohsuke/github/extras/auth/JWTTokenProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public String getEncodedAuthorization() throws IOException {
6262
if (Instant.now().isAfter(validUntil)) {
6363
token = refreshJWT();
6464
}
65-
return token;
65+
return String.format("Bearer %s", token);
6666
}
6767
}
6868

0 commit comments

Comments
 (0)