jenkinsci / jenkinsci/credentials-plugin

[JENKINS-73512] Regarding credentials binding plugin to support credentials of type GitHub App

Open
#963 0 comments 0 reactions 0 assignees View on GitHub
component:credentials-binding-plugin component:credentials-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
134
Forks
258
Avg merge
48m
Merged PRs (30d)
1

Description

team, 

currently github app credentials are accessed using usernamepassword method.

This lacks the owner role provided by credentials of type GitHub app.

In GitHub where we have multiple organizations and using same Jenkins to access multiple orgs we need to set up same credentials with multiple names specifying different owners. it would be better to have a owner variable while calling we can pass value at runtime.

i saw couple of tickets opened long back hasn't fixed the issue yet. it would be helpful to have this feature

 

withCredentials([usernamePassword(credentialsId: 'github-creds', \{*}'ownervariable': 'your github org name here'{*},usernameVariable: 'github-appid', passwordVariable: 'github-token')])


{

// your block here

}

---
Originally reported by githubofkrishnadhas, imported from: Regarding credentials binding plugin to support credentials of type GitHub App


  • status: Open
  • priority: Minor
  • component(s): credentials-binding-plugin, credentials-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08

Raw content of original issue

team, 

currently github app credentials are accessed using usernamepassword method.

This lacks the owner role provided by credentials of type GitHub app.

In GitHub where we have multiple organizations and using same Jenkins to access multiple orgs we need to set up same credentials with multiple names specifying different owners. it would be better to have a owner variable while calling we can pass value at runtime.

i saw couple of tickets opened long back hasn't fixed the issue yet. it would be helpful to have this feature

 

withCredentials([usernamePassword(credentialsId: 'github-creds', \{*}'ownervariable': 'your github org name here'{*},usernameVariable: 'github-appid', passwordVariable: 'github-token')])


{

// your block here

}

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.