secret-scanning

Configure GitHub secret scanning and push protection with alert remediation workflows.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/selfagency/agentsy --skill secret-scanning-selfagency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-scanning
Source: https://github.com/selfagency/agentsy/tree/main/.agents/skills/secret-scanning
Command: npx skills add https://github.com/selfagency/agentsy --skill secret-scanning-selfagency

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Secret scanning helps organizations detect exposed credentials and prevent them from entering your Git history, reducing the risk of compromised accounts and incident response load.

Core Features & Use Cases

  • Enable and operate GitHub Secret Scanning: Configure secret protection, push protection, and exclusions via .github/secret_scanning.yml.
  • Customize detection: Create and manage custom secret patterns (including Copilot-assisted regex generation) with optional push protection.
  • Triage and remediate alerts: Understand alert types, validity/metadata checks, dismissal reasons, and resolve blocked pushes using remove, bypass, or delegated bypass workflows.

Quick Start

Ask an AI agent to guide you through enabling GitHub secret scanning and push protection for your repository, including how to configure .github/secret_scanning.yml and how to remediate any push-protection blocks.

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 repository?

To enable GitHub secret scanning and push protection, you configure the security features at the repository, organization, or enterprise level and manage exclusions via the .github/secret_scanning.yml file. This prevents credentials from entering your Git history.

How does push protection handle blocked pushes in GitHub?

Push protection blocks commits containing detected secrets before they enter the Git history. You can remediate blocked pushes by removing the secret, bypassing the block, or using a delegated bypass workflow for review and resolution.

Can I create custom regex patterns for secret scanning in GitHub?

Yes, you can create and manage custom secret patterns using regex for secret scanning. These custom patterns can be configured with optional push protection to detect proprietary credentials and prevent them from being pushed.

What is delegated bypass in GitHub secret scanning?

Delegated bypass is a workflow in GitHub secret scanning that allows designated reviewers to authorize a blocked push containing a potential secret. It provides a controlled mechanism for resolving push protection blocks without exposing credentials directly.

How do I triage and remediate GitHub secret scanning alerts?

To triage and remediate secret scanning alerts, you review alert types, check validity and metadata, apply dismissal reasons if needed, and resolve the exposed credentials. This workflow reduces incident response load by managing credential exposure.

Does GitHub secret scanning work at the organization and enterprise levels?

Yes, GitHub secret scanning configurations apply to repository, organization, and enterprise setups. You can enable security features, define custom patterns, and manage push protection and alert remediation workflows across all these organizational scopes.