GM-024: Broad Shell Auto-Approval in Gemini Project Settings
Summary
- Rule ID:
GM-024 - Severity:
MEDIUM - Category:
Gemini CLI - Normative Level:
SHOULD - Auto-Fix:
No - Verified On:
2026-10-17
Applicability
- Tool:
gemini-cli - Version Range:
unspecified - Spec Revision:
unspecified
Evidence Sources
- https://geminicli.com/docs/cli/trusted-folders
- https://geminicli.com/docs/reference/configuration
- https://geminicli.com/docs/tools/shell
Test Coverage Metadata
- Unit tests:
true - Fixture tests:
true - E2E tests:
false
Examples
The following examples demonstrate what triggers this rule and how to fix it.
Invalid
{"tools":{"allowed":["run_shell_command"]}}
Valid
{"tools":{"allowed":["run_shell_command(git status)","run_shell_command(npm test)"]}}