Skip to content

[Feature][gh-copilot] Support GitHub App authentication (in addition to PAT) #8843

Open

Description

@fool65c

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Use case

As an engineer, I would like to connect DevLake to GitHub Copilot usage & impact data using a GitHub App installation so that:

  • We avoid storing user-owned PATs
  • Access is least-privilege, centrally managed, and revocable
  • The integration is not tied to a specific employee account
  • It aligns with enterprise security and compliance requirements

Description

Add support for GitHub App authentication to the GitHub Copilot plugin. Specifically, allow Copilot data collection to authenticate using:

  • GitHub App ID
  • Installation ID
  • Private key (PEM / secret reference)

The plugin should:

  • Allow users to configure both PAT and App authentication via the UI
  • Generate GitHub App installation access tokens
  • Automatically refresh tokens during collection
  • Support scheduled and long-running pipelines without token expiration failures

Existing PAT-based authentication should continue to work unchanged.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    type/feature-request
    on Apr 22, 2026
  2. added
    add-a-plugin
    component/plugins
    on Apr 22, 2026
  3. klesh commented on Apr 25, 2026

    @klesh
    Contributor

    Sounds great. I believe it would a good addition to the plugin.
    cc @ewega

  4. fool65c commented on Apr 27, 2026

    @fool65c
    Author

    I took a look and the billing endpoint and seat management endpoint currently don't support authentication with GitHub Apps

    This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

    Created: https://github.com/orgs/community/discussions/194116

  5. github-actions commented on Jun 27, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  6. ewega commented on Jun 30, 2026

    @ewega
    Contributor

    Hi @fool65c - Thanks for this. At this time GitHub App auth isn't supported natively for these endpoints. I'd recommend keeping it to PATs for now, via REST API (since we updates these frequently), and GraphQL APIs potentially down the line

  7. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.

  8. github-actions commented on Sep 26, 2026

    @github-actions
    Contributor

    This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.

  9. R-Beck-2020 commented on Nov 18, 2026

    @R-Beck-2020

    Please reopen:

    billing endpoint and seat management endpoint now have support for GitHub Apps.

  10. klesh commented on Nov 19, 2026

    @klesh
    Contributor

    Please reopen:

    billing endpoint and seat management endpoint now have support for GitHub Apps.

    R u going to pick it up?

  11. reopened this on Nov 19, 2026
  12. R-Beck-2020 commented on Nov 19, 2026

    @R-Beck-2020

    Please reopen:
    billing endpoint and seat management endpoint now have support for GitHub Apps.

    R u going to pick it up?

    Not immediately, in the process of setting DevLake up for the first time and getting DORA metrics in place. Hoping that @fool65c is still interested in this. I may have some capacity over Christmas, but can't commit to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

add-a-plugincomponent/pluginstype/feature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ Proxy