github-guardian.enableOnSave: Scan documents automatically when saving (default: true).
github-guardian.enableOnType: Scan and update diagnostics as you edit/type (default: true).
github-guardian.entropyThreshold: Entropy value threshold for generic secrets (default: 3.2).
Commands
GitHub Guardian: Scan Workspace for Secrets: Searches all files in the current workspace (excluding venv, node_modules, and build artifacts) and registers findings.
Manual Testing & Development
To test the extension:
Open this repository inside VS Code.
Open the file github-guardian-vscode/extension.js.
Press F5 (or go to Run > Start Debugging). This launches a new Extension Development Host window.
Open any file in the Extension Development Host window.
Type an exposed key (e.g., aws_secret_access_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY") and see it underlined in red immediately!