secret-scanner

Detect secrets and credentials in git repositories using Gitleaks.

3|1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/naporin0624/claude-web-audit-plugins --skill secret-scanner-naporin0624
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-scanner
Source: https://github.com/naporin0624/claude-web-audit-plugins/tree/main/skills/secret-scanner
Command: npx skills add https://github.com/naporin0624/claude-web-audit-plugins --skill secret-scanner-naporin0624

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill wraps Gitleaks to detect hardcoded secrets, credentials, and API keys in repositories.

Core Features & Use Cases

  • Scan the working tree or a path for potential secrets and credentials.
  • Output a structured JSON report with location, severity, and remediation hints.
  • Supports JSON output for automation and reporting.

Quick Start

Example: npx secret-scanner .

Frequently Asked Questions about secret-scanner

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

FAQPage Schema
How do I detect secrets and credentials in my git repository?

Detecting secrets in repositories involves scanning for hardcoded API keys, tokens, and credentials before they're exposed. This Skill uses Gitleaks to scan your codebase, working tree, or remote repositories and outputs structured reports with location, severity, and remediation guidance to prevent accidental leaks.

Can I scan a local directory or remote repository for secrets?

Yes, secret scanning works on both local directories and remote repositories. You can run on-demand scans of your working tree or specify a path, making it suitable for development workflows, CI pipelines, and security audits with JSON-formatted output for automation.

What information does a secrets scan report include?

A secrets scan report includes the file location, line number, severity level, commit hash, author, date, and redacted secret details. The structured JSON output also provides CWE mappings and remediation hints to help you address findings and understand the security impact.

How do I integrate secret scanning into my CI pipeline?

Secret scanning integrates into CI workflows through configurable exit codes and JSON output formats, enabling automation and reporting. You can run scans on-demand or as part of repository checks, with results that feed directly into security monitoring and compliance reporting systems.

What's the difference between scanning before and after committing secrets?

Scanning before secrets reach production catches credentials in development or pre-commit stages, preventing exposure. Post-commit scanning in CI detects leaks that bypassed earlier checks, supporting incident response; both approaches use the same detection mechanism but operate at different points in the development lifecycle.