forked from bchanot/claude
fix(settings): deny rtk read with a flag before a root .env
rtk read -n .env matched no deny and rtk passed it through. Bench R3-R7 prove the two new rules and that the */ twins already cover flagged forms. Bench hardened: checked mktemp, mandatory dir.
This commit is contained in:
1 parent
dc5f127ea5
commit
97c6afcbc8
7 files changed
+23
-4
No files matched your search
@@ -419,6 +419,8 @@ Bash(head * */.env*)
|
||||
Bash(tail * */.env*)
|
||||
Bash(cat * .env*)
|
||||
Bash(cat * */.env*)
|
||||
Bash(rtk read * .env*)
|
||||
Bash(*/rtk read * .env*)
|
||||
EOF
|
||||
check T63-phase2-rules-present "$missing" ""
|
||||
check T63b-no-root-glob "$(jq -r '(.permissions.ask + .permissions.deny)[]' \
|
||||
|
||||
Reference in new issue
Block a user