You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "Bhoopalan1999 (via GitHub)" <gi...@apache.org> on 2025/07/16 15:35:59 UTC
[I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Bhoopalan1999 opened a new issue, #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
This issue is similar to [#4173](https://github.com/apache/incubator-devlake/pull/4173). Although it is marked as completed, I'm still unable to access forked GHES repositories via Devlake configuration.
### What do you expect to happen
I'm expecting GHES and GHEC forked repos to be accessible via Github plugin in Devlake
### How to reproduce
Steps to recreate:
1. I'm using Github enterprise.
2. While generating API token, I've given access to all sub categories and the main category for 'repo' - this is because I need access to private repositories also. Other access given are read:org, read:user
3. Private repositories can be successfully accessed
4. However, forked private repositories are not accessible
5. Forked public repositories are also not accessible. So issue is with all forked repos
6. Even when the account has access to the parent repo, the forked repo still couldn't be accessed.
7. Tried with 11 Forked repos - 2 Private and 9 Public - None of which could be connected. No problem with any other non-forked repository
8. I used my API token inside my custom script to hit Github api and fetch data from the forked repo. It works. So the token **_does_** have access to forked repos.
### Anything else
Everytime
### Version
v1.0.1@e061ef2
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3083090873
<!-- Answer -->
Based on the code, forked repositories should appear in the UI if the backend receives them from the GitHub API—there’s no explicit filtering of forks unless skip_forks is set, and there’s no environment-specific logic for GHES/GHEC. Since your API token works in custom scripts but forks don’t show up in DevLake, the issue is likely in how the API response is handled or parsed in the backend, or possibly in how the UI displays the results.
To pinpoint the problem, try capturing the raw API response for forked repos using both your custom script and DevLake’s backend (enable debug logging or intercept the API call). Compare the responses to see if forks are missing or structured differently in DevLake’s output. If you find a discrepancy, focus on the repo listing and conversion logic in the backend, especially in `collectRepos.go` and `repo_convertor.go` ([example](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/github/tasks/repo_convertor.go)). If the responses match but forks still don’t appear, check the frontend’s filtering logic in the repo selection UI.
If you’re willing to dig deeper or submit a PR, these are the best places to start. Let me know if you need pointers on enabling debug logging or tracing the API calls.
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c57ed0c4-b716-4896-a8d7-9750324aafd7?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [!
[Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8505)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3083022566
<!-- Greeting -->
Hi @Bhoopalan1999! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the incubator-devlake team.
<!-- Answer -->
Based on the code, forked repo access in DevLake is controlled by the skip_forks parameter, not by whether you're using GHES or GHEC—there's no environment-specific logic for forks. If forked repos are missing, it's likely due to config, how the API response is handled, or a subtle bug in how forks are filtered or represented internally.
Could you confirm if skip_forks is set anywhere in your DevLake config or UI? Also, if you have any logs or error messages from DevLake when trying to connect to a forked repo, sharing those would help pinpoint where things are going wrong. Comparing the raw GitHub API response for a forked repo (using your working script) with what DevLake ingests could also reveal where the pipeline diverges. If you’re able to enable debug logging or add temporary log statements in collectRepos.go, that might clarify how forks are being handled at runtime.
Let me know what you find—this will help determine if a config tweak or a code patch is needed. For reference, the relevant fork-handling logic is described [here](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/github/tasks/repo_convertor.go).
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/db5f9072-97a0-4fc6-9a8a-f565a942ec03?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [!
[Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8505)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "Bhoopalan1999 (via GitHub)" <gi...@apache.org>.
Bhoopalan1999 commented on issue #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3082998603
I think Github Enterprise Cloud is causing the problem. Because I tried to fork devlake-incubator repo from my personal account and tried to access it. It is working fine. Updated the OP
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3344450696
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3374720913
This issue has been closed because it has been inactive for a long time. You can reopen it if you encounter the similar problem in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "Bhoopalan1999 (via GitHub)" <gi...@apache.org>.
Bhoopalan1999 commented on issue #8505:
URL: https://github.com/apache/incubator-devlake/issues/8505#issuecomment-3083052421
@dosu
We haven't done any config level customization. So I believe there's nothing as skip_forks anywhere. There are no errors. It just wouldn't populate the github repo in the connection - Like it doesn't have access to the repo but it does.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173) [incubator-devlake]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8505: [Bug][Module Name] Unable To Access Forked GHES repo (Similar to #4173)
URL: https://github.com/apache/incubator-devlake/issues/8505
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org