You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "nsdsb123 (via GitHub)" <gi...@apache.org> on 2026/03/19 09:47:55 UTC
[D] add github connection is wrong [incubator-devlake]
GitHub user nsdsb123 created a discussion: add github connection is wrong
I use Fine-grained Personal Access Tokens,but hint:
Token Permissions
Please check the field(s) `repo:status`, `repo_deployment`, `read:user`, `read:org`.
If you want to collect private repositories, please check the field `repo`.
my tokens have success Permissions!how can i solve it,my devlake version is "v1.0.1@e061ef2"
GitHub link: https://github.com/apache/incubator-devlake/discussions/8782
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] add github connection is wrong [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: add github connection is wrong
<!-- Answer -->
**Yes, this issue has been fixed** — [PR #8681](https://github.com/apache/incubator-devlake/pull/8681) specifically addressed private repositories not appearing in the "Add Data Scope" interface when using Fine-grained PATs. However, since you're on v1.0.1, you likely don't have this fix yet.
**Options:**
1. **Upgrade DevLake** to the latest version to get the fix
2. **Workaround for v1.0.1:** Grant your fine-grained token ALL permissions listed under the "GitHub Apps" section in the docs (not just the 6 listed under fine-grained tokens — [that documentation is incomplete](https://github.com/apache/incubator-devlake/issues/8389#issuecomment-2835890577)). After that, repos should appear in "Add Data Scope"
Upgrading is the recommended path since multiple Fine-grained PAT fixes have been merged after v1.0.1.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fincubator-devlake).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fincubator-devlake).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fincubator-devlake#message_id=e4d40665-6684-48bc-a1c5-8f805a15b10f) [](https://github.dosu.com/apache/incubator-devlake?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fincubator-devlake) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fincubator-devlake)
GitHub link: https://github.com/apache/incubator-devlake/discussions/8782#discussioncomment-16206377
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] add github connection is wrong [incubator-devlake]
Posted by "nsdsb123 (via GitHub)" <gi...@apache.org>.
GitHub user nsdsb123 added a comment to the discussion: add github connection is wrong
i have a try,but also is wrong, iI cannot select my github projects in the add data scope interface.
and Has this issue been fixed?
GitHub link: https://github.com/apache/incubator-devlake/discussions/8782#discussioncomment-16206356
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] add github connection is wrong [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: add github connection is wrong
<!-- Answer -->
**Yes, this issue has been fixed** — [PR #8681](https://github.com/apache/incubator-devlake/pull/8681) specifically addressed private repositories not appearing in the "Add Data Scope" interface when using Fine-grained PATs. However, since you're on v1.0.1, you likely don't have this fix yet.
**Options:**
1. **Upgrade DevLake** to the latest version to get the fix
2. **Workaround for v1.0.1:** Grant your fine-grained token ALL permissions listed under the "GitHub Apps" section in the docs (not just the 6 listed under fine-grained tokens — [that documentation is incomplete](https://github.com/apache/incubator-devlake/issues/8389#issuecomment-2835890577)). After that, repos should appear in "Add Data Scope"
Upgrading is the recommended path since multiple Fine-grained PAT fixes have been merged after v1.0.1.
<!-- 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/e4d40665-6684-48bc-a1c5-8f805a15b10f?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/e4d40665-6684-48bc-a1c5-8f805a15b10f?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/e4d40665-6684-48bc-a1c5-8f805a15b10f?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/e4d40665-6684-48bc-a1c5-8f805a15b10f?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/e4d40665-6684-48
bc-a1c5-8f805a15b10f?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/e4d40665-6684-48bc-a1c5-8f805a15b10f?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/e4d40665-6684-48bc-a1c5-8f805a15b10f?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=%2A%2AYes%2C%20this%20issue%20has%20been%20fixed%2A%2A%20%E2%80%94%20%5BPR%20%238681%5D%28https%3A//github.com/apache/incubator-devlake/pull/8681%29%20specifically%20addressed%20private%20repositories%20not%20appearing%20in%20the%20%22Add%20Data%20Scope%22%20interface%20when%20using%20Fine-grained%20PATs.%20However%2C%20since%20you%27re%20on%20v1.0.1%2C%20you%20likely%20don%27t%20have%20this%20fix%20yet.%0A%0A%2A%2AOptions%3A%2A%2A%0A1.%20%2A%2AUpgrade%20DevLake%2A%2A%20to%20the%20latest%20version%20to%20get%20the%20fix%0A2.%20%2A%2AWorkaround%20for%20v1.0.1%3A%2A%2A%20Grant%20your%20fine-grained%20token%20ALL%20permissions%20listed%20under%20the%20%22GitHub%20Apps%22%20sectio
n%20in%20the%20docs%20%28not%20just%20the%206%20listed%20under%20fine-grained%20tokens%20%E2%80%94%20%5Bthat%20documentation%20is%20incomplete%5D%28https%3A//github.com/apache/incubator-devlake/issues/8389%23issuecomment-2835890577%29%29.%20After%20that%2C%20repos%20should%20appear%20in%20%22Add%20Data%20Scope%22%0A%0AUpgrading%20is%20the%20recommended%20path%20since%20multiple%20Fine-grained%20PAT%20fixes%20have%20been%20merged%20after%20v1.0.1.) [](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-16206377
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] add github connection is wrong [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
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 dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org
Re: [D] add github connection is wrong [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on 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-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fincubator-devlake).*
---
Docs are dead. Just use [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-tagline&utm_term=apache%2Fincubator-devlake).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-feedback&utm_term=apache%2Fincubator-devlake#message_id=04e2c26b-7f1c-4684-9797-27e8d7de51ff) [](https://github.dosu.com/apache/incubator-devlake?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-ask-repo&utm_term=apache%2Fincubator-devlake) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=static-docs-share-team&utm_term=apache%2Fincubator-devlake)
GitHub link: https://github.com/apache/incubator-devlake/discussions/8782#discussioncomment-16205874
----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@devlake.apache.org