One-click install
npx skills add https://github.com/soham2008xyz/trade-tycoon --skill secret-scanning-soham2008xyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-scanning
Source: https://github.com/soham2008xyz/trade-tycoon/tree/main/.agents/skills/secret-scanning
Command: npx skills add https://github.com/soham2008xyz/trade-tycoon --skill secret-scanning-soham2008xyz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Secret scanning helps you detect leaked credentials in your codebase, prevent future secret pushes with push protection, and guide safe remediation so you can reduce account compromise risk.

Core Features & Use Cases

  • Enable & configure GitHub Secret Scanning: Turn on secret scanning and its related security controls in repository or organization settings.
  • Activate push protection: Block secrets during command-line, UI, uploads, and REST API content creation flows.
  • Manage alerts and remediation: Triage user/push-protection/partner alerts, understand validity checks, dismiss appropriately, rotate credentials, and decide whether to rewrite Git history.
  • Create custom patterns: Define regex-based secret formats (including Copilot-assisted regex generation) and optionally enable push protection for low-false-positive patterns.
  • Resolve blocked pushes & bypass workflows: Remove the secret from commits or use bypass/delegated bypass flows with the correct reasons and timing.

Quick Start

Use the secret-scanning skill to walk through enabling Secret Protection and Push Protection, then define any required exclusions in .github/secret_scanning.yml for safe, low-noise coverage.

Frequently Asked Questions about secret-scanning

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

FAQPage Schema
How do I enable GitHub secret scanning and push protection for my repositories?

You can enable GitHub secret scanning and push protection by toggling Secret Protection within repository, organization, or enterprise settings. This blocks leaked credentials during command-line pushes, UI uploads, and REST API content creation flows.

How do I resolve a blocked push caused by secret scanning?

Resolve a blocked push by removing the detected secret from your commits. Alternatively, use the bypass or delegated bypass workflows, providing the correct reasons and timing, to push the content while maintaining secret scanning audit trails.

How do I create custom patterns for GitHub secret scanning?

Create custom patterns for GitHub secret scanning by defining regex-based secret formats in your repository settings, optionally using Copilot-assisted regex generation. You can enable push protection for these custom patterns if they exhibit low false-positive rates.

What is the process for triaging secret scanning alerts and remediating exposed credentials?

Triage secret scanning alerts by reviewing user, push-protection, or partner alerts to understand validity checks. Remediate exposed credentials by dismissing false positives appropriately, rotating detected secrets, and deciding whether to rewrite Git history.

How do I configure secret_scanning.yml exclusions to reduce alert noise?

Configure secret_scanning.yml exclusions by specifying operational settings and requirements in the .github/secret_scanning.yml file. This defines paths and patterns to exclude from secret scanning, ensuring safe, low-noise coverage across your codebase.