-
Bug
-
Resolution: Unresolved
-
Major
-
Production
running Jenkins PR coverage plugin and observing the log output below coming from github-plugin. Issue I am seeing is my Github PAT token is getting disabled. however this action output concerns me where github-plugin is executing a null safe and trying to create a new token. no idea why/how this is happening, but its taking down our entire PR/Gitflow.
root problem is github-pr-coverage-status plugin is failing with the below credential message. ref https://github.com/jenkinsci/github-pr-coverage-status-plugin
```
Nov 24, 2020 7:13:37 PM FINE org.jenkinsci.plugins.github.internal.GitHubLoginFunction applyNullSafe
Create new GH client with creds id JenkinsGithubToken
Nov 24, 2020 7:13:38 PM WARNING org.jenkinsci.plugins.github.internal.GitHubLoginFunction applyNullSafe
Failed to login with creds JenkinsGithubToken java.io.FileNotFoundException: https://github.<redacted>.com/api/v3/user at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection.getInputStream(ObsoleteUrlFactory.java:488) at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$DelegatingHttpsURLConnection.getInputStream(ObsoleteUrlFactory.java:1201) at org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo.bodyStream(GitHubHttpUrlConnectionClient.java:197) at org.kohsuke.github.GitHubResponse$ResponseInfo.getBodyAsString(GitHubResponse.java:326) at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:91) at org.kohsuke.github.GitHubClient.lambda$fetch$0(GitHubClient.java:145) at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:461) at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:412)```
Versions:
Jenkins CentOS Docker 2.267
Github Plugin 1.32.0
Github-pr-coverage-status-plugin 2.1.1
github enterprise 2.22.3
Digging further - theres a third plugin involved here. github branch source plugin 2.9.1 - github Organization Folder - scan job for auto discovering PR builds. more log context
```
Nov 24, 2020 6:56:07 PM INFO org.jenkinsci.plugins.github.webhook.WebhookManager$1 run
GitHub webhooks activated for job github.ContentHub.pr-builds/dm-s3-keygen-client-lib with [GitHubRepositoryName[host=github.<REDACTED>.com,username=ContentHub,repository=dm-s3-keygen-client-lib]] (events: [PULL_REQUEST, PUSH, ISSUE_COMMENT])
Nov 24, 2020 6:56:07 PM WARNING org.jenkinsci.plugins.github.internal.GitHubLoginFunction applyNullSafe
Failed to login with creds JenkinsGithubToken java.io.FileNotFoundException: https://github.digitalglobe.com/api/v3/user at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$OkHttpURLConnection.getInputStream(ObsoleteUrlFactory.java:488) at org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory$DelegatingHttpsURLConnection.getInputStream(ObsoleteUrlFactory.java:1201) at org.kohsuke.github.GitHubHttpUrlConnectionClient$HttpURLConnectionResponseInfo.bodyStream(GitHubHttpUrlConnectionClient.java:197) at org.kohsuke.github.GitHubResponse$ResponseInfo.getBodyAsString(GitHubResponse.java:326) at org.kohsuke.github.GitHubResponse.parseBody(GitHubResponse.java:91) at org.kohsuke.github.GitHubClient.lambda$fetch$0(GitHubClient.java:145) at org.kohsuke.github.GitHubClient.createResponse(GitHubClient.java:461) at org.kohsuke.github.GitHubClient.sendRequest(GitHubClient.java:412)```
Owner = Contenthub which equals the Orgainzation name in Github
from the Plugin help description
"Specify the name of the GitHub Organization or GitHub User Account."
in the log output Username = Contenthub - thats not correct. so i think the issue is in this config - if you are using an org level integration(not sure how) or User level Pat that matters, but not documented??
however I have a user and PAT defined in the field above Owner - so im confused here