-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Expected Behavior
The SaganPlugin
needs to send the username parameter for the personal access token.
Current Behavior
The SaganPlugin
currently sends not-used
as the username, since the Sagan API originally called the /user
endpoint with the access token to authenticate the user and discover the GitHub username.
spring-security/buildSrc/src/main/java/org/springframework/gradle/sagan/SaganApi.java
Line 36 in fa9c7fb
.addInterceptor(new BasicInterceptor("not-used", gitHubToken)) |
Context
An updated version of the Sagan API has been deployed to work with Contentful as the backend, and is documented at https://api.spring.io/restdocs/index.html. The updated API does not call the GitHub /user
endpoint, and therefore requires the username parameter to be provided in the request.