GitHub user dosubot[bot] added a comment to the discussion: Gitextractor 
failing with multiple github tokens

<!-- Answer -->
The error message indicates that the authentication method being used is 
outdated, as GitHub removed support for password authentication in August 2021. 
The gitextractor plugin supports authentication using personal access tokens, 
which should be configured correctly.

When using multiple GitHub tokens, ensure that each token is from a different 
GitHub account, as tokens from the same account share the rate limit. The 
plugin selects the first token from a comma-separated list for authentication, 
so verify that the tokens are correctly formatted and separated 
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/config-ui/src/plugins/register/github/connection-fields/token.tsx)</sup>.

Additionally, check that the tokens have the necessary permissions. For private 
repositories, the required permissions are `repo`, `read:user`, and `read:org` 
<sup>[[2]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.19/Configuration/GitHub.md)</sup>.
 If you are using fine-grained tokens, ensure they have read-only permissions 
for entities like `Actions`, `Contents`, `Discussions`, `Issues`, `Metadata`, 
and `Pull requests` 
<sup>[[3]](https://github.com/apache/incubator-devlake-website/blob/main/versioned_docs/version-v0.20/Configuration/GitHub.md)</sup>.

If the issue persists, consider reviewing the plugin's logging capabilities to 
diagnose authentication issues 
<sup>[[4]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/gitextractor/parser/clone_gitcli.go)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*

---
<sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/a6f18b37-0d75-4bd6-b989-fbd94563c122?feedback_type=other)</sup>


GitHub link: 
https://github.com/apache/incubator-devlake/discussions/8406#discussioncomment-12945379

----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@devlake.apache.org

Reply via email to