github-credential-hardening

Detect and remediate GitHub credential leakage in code and configuration.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill github-credential-hardening
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-credential-hardening
Source: https://github.com/AskTinNguyen/vesper-team-skills/tree/main/github-credential-hardening
Command: npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill github-credential-hardening

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

GitHub credential leakage can expose tokens, keys, and access paths in codebases, logs, and IPC boundaries, creating security risks for teams.

Core Features & Use Cases

  • Detects and remediates credential leakage surfaces in repository URLs, OAuth flows, and subprocess environments.
  • Provides a guided workflow to build threat surface maps, run focused scans, confirm leaks, and apply remediation patterns.
  • Use cases include auditing GitHub token handling in CI/CD pipelines and embedded integrations to prevent accidental exposure.

Quick Start

Use the github-credential-hardening skill to scan your codebase for credential leakage and apply recommended remediations.

Frequently Asked Questions about github-credential-hardening

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

FAQPage Schema
How do I scan my codebase for GitHub credential leakage in OAuth tokens and repository URLs?

To scan for GitHub credential leakage, you need to perform a focused static scan across application code and configuration to identify exposed OAuth tokens, repository URL handling paths, and subprocess environment maps. This process maps your threat surface and confirms active leaks.

What is the best way to prevent GitHub tokens from leaking across process boundaries and IPC payloads?

Preventing GitHub token leakage across IPC payloads requires applying secure logging patterns and token redaction utilities to enforce safe boundaries across process boundaries. This ensures sensitive credentials are scrubbed before entering subprocess environments or inter-process communication channels.

How does static scanning detect exposed GitHub credentials in CI/CD pipelines and embedded integrations?

Static scanning detects exposed GitHub credentials in CI/CD pipelines by analyzing application code and configuration files for hardcoded OAuth tokens and insecure repository URL handling. It builds a threat surface map to pinpoint exact leakage paths before runtime execution.

Do I need ripgrep installed to audit GitHub token handling and subprocess environment maps?

Yes, you need the ripgrep (rg) dependency installed to perform focused static scans for GitHub credential hardening. It enables the rapid codebase searching required to identify and remediate credential leakage paths in application code and configuration.

What are the limitations of static scanning for securing GitHub OAuth flows in application code?

Static scanning limitations include an inability to catch dynamic credential leakage occurring at runtime outside of application code and configuration. It focuses on identifying exposed OAuth flows and subprocess environment maps, requiring manual confirmation of active leaks before applying remediation patterns.