I’m trying to set up a Knowledge Base in Dify using a private GitHub repository as the data source, but I’m running into an issue: when I go through the GitHub connector setup, only the README file is available to select. All other files in the repo are not shown.
My setup:
- Dify version: 1.13.0
- Deployment: self-hosted via Docker
- Repo type: private GitHub repository
- Token type: Personal Access Token (classic) with
reposcope
Steps I followed:
- Generated a GitHub PAT with full
reposcope - Connected it under Settings → Data Sources → GitHub
- Created a new Knowledge Base and selected GitHub as the source
- Selected my repo
- Only the README.md appears in the file picker — no other files are listed
What I expected:
All files in the repo (.rb, .js, .md, etc.) should be listed and selectable for indexing.
Has anyone run into this before? Is there a file size limit, a folder depth limit, or a specific token permission I’m missing? Any help would be greatly appreciated!