Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add support for fine-grained GitHub tokens #207

Open
ChristopherJHart opened this issue Feb 16, 2023 · 1 comment
Open
Labels
type/feature-request Requested new feature or enhancement

Comments

@ChristopherJHart
Copy link

Hello!

At the moment, it looks like this data source only supports classic personal access tokens. Would it be possible to add support for fine-grained personal access tokens in the near future?

The key use case that fine-grained personal access tokens accommodate is organization scoping. Users who are part of multiple organizations can scope a fine-grained personal access token used by this data source to a specific organization. Classic personal access tokens do not have this feature, so all organizations a user is a member of can be viewed by this data source, which can be undesirable.

Thank you!

@moxious
Copy link

moxious commented Feb 28, 2023

I set up the data source this morning, ran into the same thing, but adding this support doesn't seem possible yet.

The issue stems from GitHub itself; if the data source is using the GraphQL API:

Note: You need to create a personal access token (classic), GitHub App, or OAuth App to authenticate to the GraphQL API. The GraphQL API does not support authentication with fine-grained personal access tokens.

source

@gwdawson gwdawson added the type/feature-request Requested new feature or enhancement label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request Requested new feature or enhancement
Projects
Status: Backlog
Development

No branches or pull requests

3 participants