GitHub connector only shows README when adding private repo to Knowledge Base

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 repo scope

Steps I followed:

  1. Generated a GitHub PAT with full repo scope
  2. Connected it under Settings → Data Sources → GitHub
  3. Created a new Knowledge Base and selected GitHub as the source
  4. Selected my repo
  5. 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!

As far as I know, that’s a known limitation of the current implementation.

The plugin documentation suggests that code can be retrieved, but that’s a bit of an exaggeration—for now, it seems like only README.md, issues, and pull requests are listed.

Thanks for your quick reply. It’s quite disappointing that the plugin does not track all repo files :pensive_face: Tracking the README file only is unuseful to create a proper knowledge base.