-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updateCheckRun call fails since 1.128 #1157
Comments
Ah yeah, if the check creation succeeds, then there might be something else going on. |
Interesting. That explains why I didn't see it in my GitHub App as I'm using the OkHttp connector. |
Yes, looks like I can workaround this with OkHttp. |
I really am baffled that we are still struggling with this in 2021... You can report this to GitHub but they are relatively slow to fix things in the APIs so I don't think we have much choice unfortunately. But that means we need to use the new JDK Http Client introduced in Java 11 for JDK 11+ if we don't want to have recent JDK complaining about this reflection. I think it fixes this, right? So if I had to go with a plan, that would be:
|
@gsmet You could perhaps provide both versions as I will be switching to OkHttp. I'd rather not have the dependency, but I'll need to support all of 8, 11, and 16. |
Not directly relevant to this issue, but previously I tried calls out from Junit using a personal access token. This now fails when calling the checks api with a message saying I must authenticate as a github app. Can anyone confirm that this is a behaviour change, or is my memory flakey? Also, is there an easy workaround? |
I think we need to make the correct client the automatic default. It can be done using a MR jar (but it's some infrastructure). As for your issue with a PAT, you are providing it directly or using |
BTW, if you end up having to develop a GitHub App, my pet project might be of interest to you: https://github.com/quarkiverse/quarkus-github-app . |
I provide the token directly. Thanks for the link, I've been wanting an excuse to play with quarkus. |
@hcoles |
As originally raised in #1156, calls to update check runs that worked in 1.122 now fail once the enum mapping issue is worked around.
The following code
Runs without issue in 1.122 to 1.127, but fails during the updateCheckRun call from 1.128 onwards with
@gsmet has indicated that this represents an authentication failure, however it seems strange that the call to create the checkrun succeeds, while the call to update it fails using the same credentials.
The text was updated successfully, but these errors were encountered: