GitHub user dosubot[bot] added a comment to the discussion: add github connection is wrong
<!-- Greeting --> Hi @nsdsb123! I'm [Dosu](https://go.dosu.dev/dosubot) and Iām helping the incubator-devlake team. <!-- Answer --> This is a known issue with **Fine-grained Personal Access Tokens** in DevLake v1.0.1. The error message incorrectly references classic PAT scope names (`repo:status`, `repo_deployment`, `read:user`, `read:org`) which don't apply to fine-grained tokens. **Workaround:** Grant your fine-grained token all the permissions listed under "GitHub Apps" in the [DevLake documentation](https://github.com/apache/incubator-devlake/issues/8389#issuecomment-2835890577), including read access for: Actions, Contents, Issues, Metadata, Pull requests, etc. Even with correct permissions, the "Test Connection" warning may still appear, but data collection should work. **Recommended solution:** Use a **classic Personal Access Token** instead ā they're more reliable with DevLake v1.0.1. Classic tokens require these scopes: `repo:status`, `repo_deployment`, `read:user`, `read:org`, and `repo` for private repositories. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-4684-9797-27e8d7de51ff?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-4684-9797-27e8d7de51ff?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-4684-9797-27e8d7de51ff?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-4684-9797-27e8d7de51ff?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-46 84-9797-27e8d7de51ff?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination) | [Report š](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-4684-9797-27e8d7de51ff?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report) | [Other](https://app.dosu.dev/response-feedback/04e2c26b-7f1c-4684-9797-27e8d7de51ff?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup> [](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge) [](https://cursor.com/link/prompt?text=This%20is%20a%20known%20issue%20with%20%2A%2AFine-grained%20Personal%20Access%20Tokens%2A%2A%20in%20DevLake%20v1.0.1.%20The%20error%20message%20incorrectly%20references%20classic%20PAT%20scope%20names%20%28%60repo%3Astatus%60%2C%20%60repo_deployment%60%2C%20%60read%3Auser%60%2C%20%60read%3Aorg%60%29%20which%20don%27t%20apply%20to%20fine-grained%20tokens.%0A%0A%2A%2AWorkaround%3A%2A%2A%20Grant%20your%20fine-grained%20token%20all%20the%20permissions%20listed%20under%20%22GitHub%20Apps%22%20in%20the%20%5BDevLake%20documentation%5D%28https%3A//github.com/apache/incubator-devlake/issues/8389%23issuecomment-2835890577%29%2C%20including%20read%20access%20for%3A%20Actions%2C%20Content s%2C%20Issues%2C%20Metadata%2C%20Pull%20requests%2C%20etc.%20Even%20with%20correct%20permissions%2C%20the%20%22Test%20Connection%22%20warning%20may%20still%20appear%2C%20but%20data%20collection%20should%20work.%0A%0A%2A%2ARecommended%20solution%3A%2A%2A%20Use%20a%20%2A%2Aclassic%20Personal%20Access%20Token%2A%2A%20instead%20%E2%80%94%20they%27re%20more%20reliable%20with%20DevLake%20v1.0.1.%20Classic%20tokens%20require%20these%20scopes%3A%20%60repo%3Astatus%60%2C%20%60repo_deployment%60%2C%20%60read%3Auser%60%2C%20%60read%3Aorg%60%2C%20and%20%60repo%60%20for%20private%20repositories.) [](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com /apache/incubator-devlake/discussions/8782) GitHub link: https://github.com/apache/incubator-devlake/discussions/8782#discussioncomment-16205874 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
