Skip to content

GitHub app: isCredentialValid doesn't work #582

@timja

Description

@timja

I'm trying to add GitHub app support to the github-branch-source Jenkins plugin,
I'm facing 2 main issues,

  1. From the GitHub class I can't tell if I'm using a GitHub app

  2. isCredentialValid / getMyself don't work

org.kohsuke.github.GHFileNotFoundException: {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/users/#get-the-authenticated-user"}

Ideally isCredentialValid would do something else when using a GitHub app and not sure if there's anything that can be done about getMyself

cc @PauloMigAlmeida

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions