@@ -103,13 +103,18 @@ Key scripts designed to boost developer productivity:
103103
104104** ` osa copilot audit-auto-approve ` ** - Audit GitHub Copilot Auto-Approve Tasks
105105
106- - ** Problem Solved** : Ensures VSCode Copilot autoApproveTasks only contain safe Gradle patterns
107- - ** How It Works** : Scans VSCode settings for risky auto-approve patterns in Gradle build files
108- - ** Usage** : ` osa copilot audit-auto-approve [--allow-prefix <prefixes>] [--fail-on-risk] [--json] `
106+ - ** Problem Solved** : Ensures VSCode Copilot autoApproveTasks only contain safe patterns and blocks dangerous commands
107+ - ** Security Guards** : Blocks rm -rf, directory traversal (..), privilege escalation (sudo), system operations, and more
108+ - ** How It Works** : Scans VSCode user settings (~ /.vscode/settings.json) and workspace settings (.vscode/settings.json) for risky auto-approve patterns
109+ - ** Usage** : ` osa copilot audit-auto-approve [--allow-prefix <prefixes>] [--settings-file <path>] [--scan-prefixes] [--fail-on-risk] [--json] `
109110- ** Options** :
110- - ` --allow-prefix ` : Comma-separated allowed prefixes (default: "tachyon")
111+ - ` --allow-prefix ` : Optional comma-separated allowed prefixes for safe Gradle tasks (auto-scans if not provided)
112+ - ` --settings-file ` : Optional path to specific VSCode settings.json (searches user & workspace by default)
113+ - ` --scan-prefixes ` : Auto-scan and report health of all prefixes found
111114 - ` --fail-on-risk ` : Exit with error if risky patterns found
112115 - ` --json ` : Output results in JSON format
116+ - ** Risky Patterns Blocked** : rm -rf (with dangerous paths), directory traversal, sudo, system commands, eval/exec, dangerous globs
117+ - ** Safe rm -rf targets** : node_modules, build, dist, .next, .cache, temp directories
113118- ** Perfect For** : Security auditing, CI/CD pipelines, team policy enforcement
114119
115120## Productivity Benefits
0 commit comments