6ede33ccdb
Build and Push Docker Images / create_manifest (web, surfsense-web, , cpu) (push) Has been cancelled
Build and Push Docker Images / finalize_release (push) Has been cancelled
Obsidian Plugin Lint / lint (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, cpu, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64, , runner, false, cpu) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_web, cpu, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64, , runner, false, cpu) (push) Has been cancelled
Build and Push Docker Images / compute_version (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cpu, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64, , production, false, cpu) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cpu, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64, , production, false, cpu) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu126, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64, -cuda126, production, true, cuda126) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu126, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64, -cuda126, production, true, cuda126) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu128, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64, -cuda, production, true, cuda) (push) Has been cancelled
Build and Push Docker Images / build (./surfsense_backend, cu128, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64, -cuda, production, true, cuda) (push) Has been cancelled
Build and Push Docker Images / verify_digests (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend, , cpu) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend, -cuda, cuda) (push) Has been cancelled
Build and Push Docker Images / create_manifest (backend, surfsense-backend, -cuda126, cuda126) (push) Has been cancelled
90 lines
2.8 KiB
Plaintext
90 lines
2.8 KiB
Plaintext
---
|
|
title: GitHub
|
|
description: Connect your GitHub repositories to SurfSense
|
|
---
|
|
|
|
# GitHub Integration Setup Guide
|
|
|
|
<Callout type="warn" title="Indexing deprecated">
|
|
The GitHub indexing pipeline is currently deprecated — the knowledge base now stores files, notes, and uploads only. Existing GitHub connectors remain manageable, but new indexing runs are refused by the backend.
|
|
</Callout>
|
|
|
|
This guide walks you through connecting your GitHub repositories to SurfSense for code search and AI-powered insights.
|
|
|
|
## How it works
|
|
|
|
The GitHub connector uses [gitingest](https://gitingest.com) to fetch and process repository contents from GitHub.
|
|
|
|
- For follow-up indexing runs, the connector retrieves the latest repository state and updates changed files.
|
|
- Indexing should be configured to run periodically, so updates should appear in your search results within minutes.
|
|
|
|
---
|
|
|
|
## What Gets Indexed
|
|
|
|
| Content Type | Examples |
|
|
|--------------|----------|
|
|
| Code Files | Python, JavaScript, TypeScript, Go, Rust, Java, etc. |
|
|
| Documentation | README files, Markdown documents, text files |
|
|
| Configuration | JSON, YAML, TOML, .env examples, Dockerfiles |
|
|
|
|
<Callout type="warn">
|
|
Binary files and files larger than 5MB are automatically excluded.
|
|
</Callout>
|
|
|
|
---
|
|
|
|
## Quick Start (Public Repos)
|
|
|
|
1. Navigate to **Connectors** → **Add Connector** → **GitHub**
|
|
2. Enter repository names: `owner/repo` (e.g., `facebook/react, vercel/next.js`)
|
|
3. Click **Connect GitHub**
|
|
|
|
No authentication required for public repositories.
|
|
|
|
---
|
|
|
|
## Private Repositories
|
|
|
|
For private repos, you need a GitHub Personal Access Token (PAT).
|
|
|
|
### Generate a PAT
|
|
|
|
1. Go to [GitHub's token creation page](https://github.com/settings/tokens/new?description=surfsense&scopes=repo) (pre-filled with `repo` scope)
|
|
2. Set an expiration
|
|
3. Click **Generate token** and copy it
|
|
|
|
<Callout type="warn">
|
|
The token starts with `ghp_`. Store it securely.
|
|
</Callout>
|
|
|
|
<Callout type="info" title="Periodic Sync">
|
|
Enable periodic sync to automatically re-index repositories when content changes. Available frequencies: Every 5 minutes, 15 minutes, hourly, every 6 hours, daily, or weekly.
|
|
</Callout>
|
|
|
|
---
|
|
|
|
## Connector Configuration
|
|
|
|
| Field | Description | Required |
|
|
|-------|-------------|----------|
|
|
| **Connector Name** | A friendly name to identify this connector | Yes |
|
|
| **GitHub Personal Access Token** | Your PAT (only for private repos) | No |
|
|
| **Repository Names** | Comma-separated list: `owner/repo1, owner/repo2` | Yes |
|
|
|
|
---
|
|
|
|
## Troubleshooting
|
|
|
|
**Repository not found**
|
|
- Verify format is `owner/repo`
|
|
- For private repos, ensure PAT has access
|
|
|
|
**Authentication failed**
|
|
- Check PAT is valid and not expired
|
|
- Token should start with `ghp_` or `github_pat_`
|
|
|
|
**Rate limit exceeded**
|
|
- Use a PAT for higher limits (5,000/hour vs 60 unauthenticated)
|
|
- Reduce sync frequency
|