2026-04-24 12:54:40 -07:00
|
|
|
# Custom CI Policy for Gemini CLI Bot
|
|
|
|
|
# This policy guarantees permission for shell commands and file writing in the bot's CI environment.
|
|
|
|
|
|
|
|
|
|
[[rule]]
|
2026-04-24 16:55:13 -07:00
|
|
|
toolName = ["run_shell_command", "write_file", "replace"]
|
2026-04-24 12:54:40 -07:00
|
|
|
decision = "allow"
|
|
|
|
|
# Max priority to ensure it overrides all default and workspace rules.
|
|
|
|
|
priority = 999
|
|
|
|
|
# Explicitly target the headless environment to match the specificity of default denial rules.
|
|
|
|
|
interactive = false
|
|
|
|
|
|
|
|
|
|
[[rule]]
|
|
|
|
|
toolName = "invoke_agent"
|
|
|
|
|
decision = "deny"
|
|
|
|
|
priority = 999
|
|
|
|
|
interactive = false
|