jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-68633] Misleading "Exception Validating Credentials" in credentials dropdown of Github Branch Source component

Open
#1,401 1 comment 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

The credentials dropdown of a Multibranch Pipeline with GitHub branch source shows "Exception Validating Credentials" when using a GitHub Enterprise Server:

The scenario when this happens:


  • the credentials selected are to be used for GitHub Enterprise Server and not `github.com`

  • the recommended "Repository HTTPS URL" is selected and properly filled

I believe that the check is still looking at the information in the "Repository Scan - Deprecated Visualization". If you select "Repository Scan - Deprecated Visualization" and select the correct "API Endpoint", then the credentials check will work.

The form validation is a red herring and the true way to validate the credentials against the "Repository HTTPS URL" is to use the *Validate* button. If that works, then the credentials should work for scanning and checkout.

---
Originally reported by allan_burdajewicz, imported from: Misleading "Exception Validating Credentials" in credentials dropdown of Github Branch Source component


  • assignee: allan_burdajewicz
  • status: In Review
  • priority: Minor
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

The credentials dropdown of a Multibranch Pipeline with GitHub branch source shows "Exception Validating Credentials" when using a GitHub Enterprise Server:

The scenario when this happens:


  • the credentials selected are to be used for GitHub Enterprise Server and not `github.com`

  • the recommended "Repository HTTPS URL" is selected and properly filled

I believe that the check is still looking at the information in the "Repository Scan - Deprecated Visualization". If you select "Repository Scan - Deprecated Visualization" and select the correct "API Endpoint", then the credentials check will work.

The form validation is a red herring and the true way to validate the credentials against the "Repository HTTPS URL" is to use the *Validate* button. If that works, then the credentials should work for scanning and checkout.

1 attachment

- [credentials-issue.png](https://issues.jenkins.io/secure/attachment/58090/credentials-issue.png)
> ![credentials-issue.png](https://issues.jenkins.io/secure/attachment/58090/credentials-issue.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.