Skip to content

Commit ae5af2e

Browse files
authored
[JENKINS-68480] Automatically select owner for GitHubAppCredentials
1 parent 7e985db commit ae5af2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jenkinsci/plugins/pipeline/github/GitHubHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static ExtendedGitHubClient getGitHubClient(@Nonnull final Job<?,?> job)
6161
// configure credentials
6262
if (gitHubSource.getCredentialsId() != null) {
6363
StandardCredentials credentials = Connector.lookupScanCredentials(
64-
job, gitHubSource.getApiUri(), gitHubSource.getCredentialsId());
64+
job, gitHubSource.getApiUri(), gitHubSource.getCredentialsId(), gitHubSource.getRepoOwner());
6565

6666
if (credentials instanceof StandardUsernamePasswordCredentials) {
6767
StandardUsernamePasswordCredentials c = (StandardUsernamePasswordCredentials) credentials;

0 commit comments

Comments
 (0)