Overview
The GitHub connector lets you link your GitHub account to Workshop using a Personal Access Token. Once connected, you can access repositories, analyze code, clone repos, and perform API operations through natural conversation.What You’ll Need
| Credential | Description | Format |
|---|---|---|
| Personal Access Token | Fine-grained or classic GitHub token | ghp_... (classic) or github_pat_... (fine-grained) |
Creating a Personal Access Token
Open GitHub settings
Sign in to github.com, click your profile photo, and select Settings.
Navigate to developer settings
Scroll down the sidebar and click Developer settings > Personal access tokens > Fine-grained tokens.
Generate a token
Click Generate new token. Enter a Token name (e.g., “Workshop Access”), set an Expiration date, and choose the Resource owner (your account or an organization).
Set permissions
Under Permissions, grant the access you need:
- Contents: Read (to view files)
- Metadata: Read (required for all tokens)
- Issues: Read and write (if you want Workshop to create/manage issues)
- Pull requests: Read and write (if you want Workshop to create PRs)
Organization tokens may require approval. If you select an organization as the resource owner, the organization may need to approve the token before it becomes active. Check with your organization administrator if the token isn’t working.
Connecting to Workshop
Enter details
Enter a Connection Name (e.g., “My GitHub Account”) and paste your Personal Access Token.
Using Your Connection
Once connected, you can ask Workshop to work with your GitHub data:Security Best Practices
- Use fine-grained tokens with the minimum permissions needed
- Set an expiration date on all tokens
- Create separate tokens for different integrations
- If you suspect a token is compromised, revoke it immediately in GitHub Settings > Developer settings > Personal access tokens
Troubleshooting
| Issue | Solution |
|---|---|
| ”Bad credentials” | Verify the token was copied correctly and hasn’t expired or been revoked. |
| ”Not Found” for repos | Ensure the token has access to the target repository. |
| Rate limiting | GitHub limits API requests to 5,000/hour for authenticated users. Wait for the limit to reset. |