gh-auth-isolation

Isolate gh config contexts to prevent GitHub credential crossovers during automation.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/robpitcher/eShopOnWeb --skill gh-auth-isolation-robpitcher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-auth-isolation
Source: https://github.com/robpitcher/eShopOnWeb/tree/main/.copilot/skills/gh-auth-isolation
Command: npx skills add https://github.com/robpitcher/eShopOnWeb --skill gh-auth-isolation-robpitcher

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safely manage multiple GitHub identities within automated tasks to prevent cross-account credential leakage and mixed permissions.

Core Features & Use Cases

  • Detect the active GitHub identity and route operations to the correct account.
  • Isolate gh configuration per task to prevent cross-contamination between EMU and personal accounts.
  • Use cases include pushing to personal forks, creating PRs, and accessing resources across orgs without exposing credentials.

Quick Start

Instruct the agent to switch to the appropriate GitHub identity before performing a repository operation.

Frequently Asked Questions about gh-auth-isolation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent GitHub credential crossover when automating tasks across multiple accounts?

Identity isolation works by detecting the active GitHub identity and routing operations to the correct account using isolated gh config contexts. This ensures credentials are not leaked or mixed during automated agent workflows across different accounts.

Can I safely switch between EMU and personal GitHub accounts during automation?

Yes, you can safely switch between Enterprise Managed User (EMU) and personal GitHub accounts by isolating gh configuration per task. This enforces per-operation identity selection to prevent cross-contamination and credential leakage between accounts.

What is the best way to manage multiple GitHub identities when pushing to personal forks?

The best way to manage multiple GitHub identities when pushing to personal forks is to detect the active identity and isolate the configuration context per task. This ensures you push using the correct account without exposing or mixing credentials.

Why do my automated GitHub operations use the wrong account credentials?

Automated GitHub operations use the wrong credentials because of a lack of identity isolation. Without isolating gh configuration contexts per task, credential crossover occurs between different accounts during automation, leading to mixed permissions.

Do I need to manually switch GitHub accounts before each repository operation in an agent workflow?

No, you do not need to manually switch accounts. You can instruct the agent to switch to the appropriate GitHub identity before performing a repository operation, and the system will enforce per-operation identity selection automatically.