GitHub Copilot Guide
Connect GitHub Copilot once. Control repository access in Secure Git Bridge.
Install the Secure Git Bridge MCP connector in VS Code once, then authorize each intended Copilot chat to one approved repository with a fresh one-time code and local Confirm.
1. Install Secure Git Bridge once
Add the Git repositories you want Secure Git Bridge to protect. Each repository keeps its own isolated helper, rotating broker capability, protected-file policy, audit chain, and patch proposal store.
2. Connect GitHub Copilot once
Open GitHub Copilot in Secure Git Bridge and choose Connect GitHub Copilot. Secure Git Bridge opens VS Code's MCP installation prompt for the provider-wide Secure Git Bridge connector. Approve it once. You do not copy repository pairing values or create a new MCP entry for every repository. Secure Git Bridge remains Setup pending until Copilot actually connects and exposes the Secure Git Bridge MCP tools.
The provider connector contains no repository path, repository ID, or repository broker credential. Provider setup and repository authority are separate.
3. Authorize the intended GitHub Copilot session
Select the approved repository in Secure Git Bridge and choose Copy One-Time Connection Message. Paste that exact message into the intended GitHub Copilot session. The session calls activate_session with the short-lived code, but the code alone grants no repository access. Verify the matching session code in the Secure Git Bridge desktop app and click Confirm. Only then is that exact session pinned to the selected repository. GitHub Copilot cannot enumerate, choose, or switch repositories through its connector.
To use another repository, revoke or unbind the current session, select the next repository, and authorize the intended session with a fresh one-time code plus local Confirm. The provider connector stays installed; no reinstall is required.
4. Work through the Secure Git Bridge tools
- Read only policy-permitted repository content.
- Protected files and path escapes remain blocked.
- Git status, log, and diff remain repository-scoped.
- The AI may create patch proposals for local review.
- There is no Secure Git Bridge shell, repository picker, approval, rejection, or Apply tool for the AI.
Apply remains human-only inside Secure Git Bridge.
Normal VS Code workspace file, edit, terminal, browser, or agent tools are outside Secure Git Bridge's boundary. For an SSGB-secured workflow, perform repository operations through the Secure Git Bridge MCP tools.
Disconnect without reinstalling
Unbind revokes GitHub Copilot's confirmed session route while leaving the provider connector configured. A later AI session requires a fresh one-time code and local Confirm. Disconnect This Repository revokes every AI route to that repository. Disconnect All AI Access revokes all repository routes. Provider connectors can remain installed and be used again without reinstalling.
What “Connected,” “Bound,” and “Active” mean
Setup pending means setup was handed off but the provider has not yet verified the Secure Git Bridge MCP tools. Connector ready means the connector was actually verified and still has no repository authority. Bound means the local developer confirmed one exact AI session for one repository. Active is shown only while that confirmed session has live provider MCP traffic.
Provider account and data flow
Your GitHub Copilot account, plan, usage, retention, and provider-side privacy terms remain with the provider. Repository content you intentionally authorize the AI to inspect can be transmitted to that provider through the normal AI interaction. Secure Git Bridge controls the local repository boundary and records access; it does not claim provider-side data handling.
Next steps
Download Secure Git Bridge Open the quick start
For the trust boundary and release model, see Security and How It Works.