github-datasource
github-datasource copied to clipboard
Feature Request: Add support for fine-grained GitHub tokens
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!
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.