fix_secrets
Fix leaked secrets on your machine by cleaning shell history, adding .env to .gitignore, and receiving step-by-step rotation instructions.
Instructions
Fix leaked secrets found on your machine. Auto-cleans shell history (backs up first), adds .env to .gitignore where missing, and provides step-by-step rotation instructions with direct links for secrets that need manual rotation. Returns structured JSON (in a second content block) with before/after health scores for visual rendering. If you have visualization capabilities, render the JSON as a fix report dashboard with before/after health score comparison and auto-fixed item list. Run scan_secrets first to see what will be fixed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auto_fix | No | Automatically fix what's possible (shell history cleanup, gitignore). Default: true. | |
| include_low_severity | No | Include low-severity findings in the fix. Default: false. |