Skip to content

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

@jenkins-infra-bot

Description

@jenkins-infra-bot

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 }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions