GitHub#
Connect GitHub to Lens Agents. Agents get access to repositories, pull requests, issues, and file management through the GitHub CLI.
How It Works#
GitHub connections provide agents with access to the gh CLI and Git operations inside the sandbox. Credentials are managed at the platform level — agents use the GitHub connection without seeing the underlying token.
What Agents Can Do#
With a GitHub connection, agents can:
- Browse repositories and file contents
- Create, review, and merge pull requests
- Search and manage issues
- Read and write files
- View commit history and diffs
- Manage releases and tags
All operations are governed by the GitHub connection's token scope and the agent's policies.
Audit#
Every GitHub operation is recorded in the audit trail — repository access, PR creation, file changes, and other actions are attributed to the agent's identity.
Related#
- Connections overview — all connection types
- Kubernetes — connecting K8s clusters
- AWS — connecting AWS accounts
- Policies — controlling GitHub access per team