docs(config): use exact path in permissions example
This commit is contained in:
+1
-1
@@ -146,7 +146,7 @@ sandbox_mode = "workspace-write" # read-only | workspace-write | danger-full-acc
|
||||
#
|
||||
# [[rules]]
|
||||
# tool = "read_file"
|
||||
# path = "secrets/**"
|
||||
# path = "secrets/api_key.txt"
|
||||
|
||||
# ─────────────────────────────────────────────────────────────────────────────────
|
||||
# External Sandbox Backend (pluggable remote execution)
|
||||
|
||||
@@ -2357,7 +2357,7 @@ mod tests {
|
||||
|
||||
[[rules]]
|
||||
tool = "read_file"
|
||||
path = "secrets/**"
|
||||
path = "secrets/api_key.txt"
|
||||
"#,
|
||||
)
|
||||
.expect("permissions toml");
|
||||
@@ -2366,7 +2366,7 @@ mod tests {
|
||||
permissions.rules,
|
||||
vec![
|
||||
ToolAskRule::exec_shell("cargo test"),
|
||||
ToolAskRule::file_path("read_file", "secrets/**"),
|
||||
ToolAskRule::file_path("read_file", "secrets/api_key.txt"),
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -2410,7 +2410,7 @@ mod tests {
|
||||
|
||||
[[rules]]
|
||||
tool = "read_file"
|
||||
path = "secrets/**"
|
||||
path = "secrets/api_key.txt"
|
||||
"#,
|
||||
)
|
||||
.expect("write permissions");
|
||||
@@ -2422,7 +2422,7 @@ mod tests {
|
||||
store.permissions().rules.as_slice(),
|
||||
&[
|
||||
ToolAskRule::exec_shell("cargo test"),
|
||||
ToolAskRule::file_path("read_file", "secrets/**"),
|
||||
ToolAskRule::file_path("read_file", "secrets/api_key.txt"),
|
||||
]
|
||||
);
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user