What Gets Synced
The GitHub connector syncs:- Repositories - Repository metadata and stats
- Directories - Directory structure
- Code Files - Source code files
Authentication
This connector uses Personal Access Token authentication.Configuration
Repository Name (Required)
Repository inowner/repo format (e.g., airweave-ai/airweave).
Branch (Optional)
Specific branch to sync (e.g.,main, development). If empty, uses the default branch.
Setup
Create GitHub Personal Access Token
- Go to GitHub Settings → Developer settings → Personal access tokens → Fine-grained tokens
- Generate a new token with:
- Repository access: Select specific repos
- Permissions: Contents (Read-only)
Supported Entities
GitHub Repository
Repository-level metadata. Key fields:- Repository name and description
- Default branch
- Language and size
- Stars, forks, watchers
GitHub Code Files
Source code files. Key fields:- File path and name
- Branch
- SHA hash
- Line count
- HTML URL
Implementation Details
View Source Code
Explore the GitHub connector implementation on GitHub
For detailed token setup instructions with screenshots, see the GitHub connector source documentation.