Add secrets-scanner plugin for detecting leaked credentials #3
+2,365
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new
secrets-scannerplugin that provides comprehensive capabilities for detecting leaked secrets and credentials in codebases using three industry-leading tools: gitleaks, git-secrets, and TruffleHog.Key Changes
Plugin Registration: Added
secrets-scannerentry to.claude-plugin/marketplace.jsonPlugin Metadata: Created
plugins/secrets-scanner/.claude-plugin/plugin.jsonwith plugin configurationComprehensive Documentation: Added detailed README covering:
Command Documentation: Created detailed guides for 8 commands:
/secrets-scanner:scan-gitleaks- Scan with gitleaks/secrets-scanner:scan-git-secrets- Scan with git-secrets/secrets-scanner:scan-trufflehog- Scan with TruffleHog/secrets-scanner:scan-all- Run all three tools for maximum coverage/secrets-scanner:compare- Compare tools to help choose the right one/secrets-scanner:ci-setup- Set up GitHub Actions workflows/secrets-scanner:install- Install the scanning tools/secrets-scanner:configure- Configure custom rules and allowlistsNotable Implementation Details
.gitleaks.toml, git config patterns, and TruffleHog exclusionsThis plugin enables developers and security teams to choose the right secret scanning tool(s) for their needs and provides complete guidance for installation, configuration, and CI/CD integration.
https://claude.ai/code/session_01VeM4EmjpXmxfcjML4hKRFA