Skip to content

Allow to authenticate as the app via app installation token? Β #54

@trolit

Description

@trolit

Hello,

thanks for the adapter, it works pretty well. I know that in the docs it is mentioned that:

You cannot authenticate as the app.

[..] you cannot create new tokens or renew the provided one. [...] You could provide a personal access token instead of secrets.GITHUB_TOKEN to workaround the limits of a repository-scoped token, but be sure you know what you are doing.

however I wonder if it really wouldn't be possible to enhance adapter (or create extra add-on to it) and allow to pass APP_ID, PRIVATE_KEY via env instead of GITHUB_TOKEN which would generate app installation token first and then use it in requests?

There are some solutions that offer such thing. I've tested navikt/github-app-token-generator@v1 and it allowed me to authenticate as app. You can check that it worked here. It used following workflow.

It would be awesome if Probot's supported it (authetication via app installation token) internally πŸ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions