gh-auth-isolation

Isolate GitHub authentication contexts to prevent credential mixing in agent workflows.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/jonnymuir/Umbraco.Prism --skill gh-auth-isolation-jonnymuir
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-auth-isolation
Source: https://github.com/jonnymuir/Umbraco.Prism/tree/main/.copilot/skills/gh-auth-isolation
Command: npx skills add https://github.com/jonnymuir/Umbraco.Prism --skill gh-auth-isolation-jonnymuir

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves authentication conflicts that occur when AI agents attempt to interact with personal and enterprise GitHub accounts simultaneously, preventing permission errors and accidental credential leakage.

Core Features & Use Cases

  • Identity Detection: Safely verify which GitHub account is currently active before executing commands.
  • Context Isolation: Use separate configuration directories to keep personal and enterprise credentials strictly partitioned.
  • Use Case: An agent needs to push code to a personal repository while the shell environment is globally configured for an Enterprise Managed User (EMU) account.

Quick Start

Use the gh-auth-isolation skill to extract a temporary token for your personal account and push your current branch to the personal repository.

Frequently Asked Questions about gh-auth-isolation

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

FAQPage Schema
How do I manage multiple GitHub accounts in CLI without credential mixing?

You can manage multiple GitHub accounts by isolating authentication contexts and switching configuration directories to keep personal and enterprise credentials strictly partitioned. This prevents credential mixing and permission errors during agent workflows.

Why does my GitHub CLI push fail when using an Enterprise Managed User account globally?

GitHub CLI pushes fail when global configurations cause authentication conflicts between personal and enterprise accounts. Extracting a temporary token for the specific target account isolates the context and resolves the permission errors.

What is the best way to prevent hardcoded GitHub tokens in automated workflows?

The best way to prevent hardcoded GitHub tokens is to use secure token extraction methods that facilitate temporary authentication without persistent global auth changes, ensuring compliance with security best practices.

Can I securely push code to a personal repository from an enterprise-configured shell environment?

Yes, you can push code to a personal repository from an enterprise shell by extracting a temporary token for your personal account and isolating the authentication context to avoid credential leakage.

How do I verify which GitHub account is active before executing CLI commands?

You can verify the active GitHub account by using identity detection features to safely check the currently authenticated user before executing commands, ensuring operations run under the correct credentials.

Does isolating GitHub authentication contexts support Enterprise Managed User configurations?

Yes, isolating GitHub authentication contexts explicitly supports secure operations across both enterprise and personal accounts by utilizing separate configuration directories to maintain strict credential partitioning.