secret-scanning

Configure GitHub secret scanning, push protection, custom patterns, and alert remediation workflows.

1|1|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill secret-scanning-ultraviollettnympho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-scanning
Source: https://github.com/ultraviollettnympho/transit-ticket/tree/main/.github/skills/secret-scanning
Command: npx skills add https://github.com/ultraviollettnympho/transit-ticket --skill secret-scanning-ultraviollettnympho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Leaked credentials in repositories lead to breaches, and teams often lack clear guidance on enabling GitHub secret scanning, blocking secret pushes, and triaging the resulting alerts. ## Core Features & Use Cases - Enablement Guidance: Step-by-step instructions for enabling Secret Protection, push protection, validity checks, and AI-based generic secret detection at repository, organization, or enterprise level. - Blocked Push Resolution: Concrete git workflows (amend, interactive rebase) and bypass procedures, including delegated bypass request handling. - Custom Patterns & Alert Management: Regex-based custom pattern creation with dry runs, plus alert triage, dismissal reasons, validity statuses, and REST API endpoints. - Use Case: A developer's push is blocked because an API key was committed. Use this Skill to walk through removing the secret from history with interactive rebase, or submitting a delegated bypass request, then rotating the credential and resolving the alert. ## Quick Start Ask the agent to help you enable secret scanning and push protection on your repository and resolve any blocked push containing a detected secret.

Frequently Asked Questions about secret-scanning

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

FAQPage Schema
How do I enable secret scanning and push protection on GitHub?

Go to repository Settings, then Advanced Security, and enable Secret Protection followed by Push protection. For organizations, use security configurations under Global settings to enable both features at scale across repositories.

How do I fix a push blocked by GitHub push protection?

Remove the secret from the file and amend the commit with git commit --amend, or use interactive rebase if it is in an earlier commit. Alternatively, visit the bypass URL from the error message, select a reason, and re-push within 3 hours.

How do I create custom secret scanning patterns in GitHub?

Navigate to Settings, Advanced Security, Custom patterns, and select New pattern. Enter a name and regex, add a sample test string, run a dry run to check for false positives, then publish the pattern and optionally enable push protection.

Does GitHub secret scanning work on private repositories?

Secret scanning is automatic and free on public repositories. Private and internal organization-owned repositories require GitHub Secret Protection, available on Team or Enterprise Cloud plans.

What should I do first when a secret scanning alert appears?

Rotate the exposed credential immediately by revoking it and issuing a new one; this matters more than removing it from Git history. Then check the validity status, update references, investigate usage, and close the alert with an appropriate resolution reason.

How do I exclude files from GitHub secret scanning?

Create a .github/secret_scanning.yml file with a paths-ignore list of glob patterns, such as docs/** or test fixtures. Excluded paths skip both scanning and push protection, with a limit of 1,000 entries.