jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-76236] Test Connection in GitHupp App credentials should also use the access strategy

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

Description

Steps to Reproduce



  1. Configure a GitHub App credential in Jenkins

  2. In Advanced, set ''Specify specific repositories'' and an invalid owner

    1. invalid -> the org or user doesn't have the App installed



  3. Test Connection with blank or a valid org/user

Expected Results

The Credential check should honor the access strategy and fail


Root Cause

Test Connection is only using the provided ''GitHub organization to test against'' as owner of the check, reporting a misleading success.

 

 

---
Originally reported by apuig, imported from: Test Connection in GitHupp App credentials should also use the access strategy


  • status: Open
  • priority: Major
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

Steps to Reproduce



  1. Configure a GitHub App credential in Jenkins

  2. In Advanced, set ''Specify specific repositories'' and an invalid owner

    1. invalid -> the org or user doesn't have the App installed



  3. Test Connection with blank or a valid org/user

Expected Results

The Credential check should honor the access strategy and fail


Root Cause

Test Connection is only using the provided ''GitHub organization to test against'' as owner of the check, reporting a misleading success.

 

 

1 attachment

- [Screenshot from 2025-10-24 12-11-40.png](https://issues.jenkins.io/secure/attachment/65016/Screenshot%20from%202025-10-24%2012-11-40.png)
> ![Screenshot from 2025-10-24 12-11-40.png](https://issues.jenkins.io/secure/attachment/65016/Screenshot%20from%202025-10-24%2012-11-40.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.