diff --git a/doctor.sh b/doctor.sh index 1ef011c..d4ae484 100644 --- a/doctor.sh +++ b/doctor.sh @@ -252,7 +252,7 @@ fi if command -v jq &>/dev/null; then pass "jq $(jq --version 2>/dev/null | sed 's/^jq-//')" else - fail "jq not found — statusline & rtk-rewrite hooks require it" + fail "jq not found: statusline, rtk-rewrite, code-limits and push-guard hooks require it" fi if command -v cargo &>/dev/null; then diff --git a/lib/tests/push-guard.test.sh b/lib/tests/push-guard.test.sh index 54383a3..fa84602 100644 --- a/lib/tests/push-guard.test.sh +++ b/lib/tests/push-guard.test.sh @@ -455,6 +455,34 @@ Bash(cat * .env*) Bash(cat * */.env*) Bash(rtk read * .env*) Bash(*/rtk read * .env*) +Bash(awk *system (*) +Bash(gawk *system(*) +Bash(gawk *system (*) +Bash(mawk *system(*) +Bash(mawk *system (*) +Bash(awk -f *) +Bash(awk * -f *) +Bash(cat *.key) +Bash(cat *.key *) +Bash(cat *.pem) +Bash(cat *.pem *) +Bash(cat id_rsa*) +Bash(rtk read *.key*) +Bash(*/rtk read *.key*) +Bash(rtk read *.pem*) +Bash(*/rtk read *.pem*) +Bash(rtk read id_rsa*) +Bash(*/rtk read id_rsa*) +Bash(cat *id_rsa*) +Bash(rtk read *id_rsa*) +Bash(*/rtk read *id_rsa*) +Bash(cat *id_ed25519*) +Bash(rtk read *id_ed25519*) +Bash(*/rtk read *id_ed25519*) +Bash(gawk -f *) +Bash(mawk -f *) +Bash(awk *getline*) +Bash(awk *| "*) EOF check T63-phase2-rules-present "$missing" "" check T63b-no-root-glob "$(jq -r '(.permissions.ask + .permissions.deny)[]' \ diff --git a/settings.json b/settings.json index 365b2b0..2a21e7b 100644 --- a/settings.json +++ b/settings.json @@ -192,9 +192,16 @@ "Bash(cat */.env.*)", "Bash(cat */secrets/*)", "Bash(cat */*.pem)", + "Bash(cat *.pem)", + "Bash(cat *.pem *)", "Bash(cat */*.key)", + "Bash(cat *.key)", + "Bash(cat *.key *)", "Bash(cat */id_rsa*)", + "Bash(cat id_rsa*)", + "Bash(cat *id_rsa*)", "Bash(cat */id_ed25519*)", + "Bash(cat *id_ed25519*)", "Bash(cat */.aws/credentials)", "Bash(head .env)", "Bash(head .env.*)", @@ -354,6 +361,17 @@ "Edit(~/.gitconfig)", "Edit(~/.config/git/config)", "Bash(awk *system(*)", + "Bash(awk *system (*)", + "Bash(gawk *system(*)", + "Bash(gawk *system (*)", + "Bash(mawk *system(*)", + "Bash(mawk *system (*)", + "Bash(awk -f *)", + "Bash(awk * -f *)", + "Bash(gawk -f *)", + "Bash(mawk -f *)", + "Bash(awk *getline*)", + "Bash(awk *| \"*)", "Bash(head * .env*)", "Bash(tail * .env*)", "Bash(head * */.env*)", @@ -364,8 +382,12 @@ "Bash(*/rtk read * .env*)", "Bash(rtk read */*.key*)", "Bash(*/rtk read */*.key*)", + "Bash(rtk read *.key*)", + "Bash(*/rtk read *.key*)", "Bash(rtk read */*.pem*)", "Bash(*/rtk read */*.pem*)", + "Bash(rtk read *.pem*)", + "Bash(*/rtk read *.pem*)", "Bash(rtk read */.aws/credentials*)", "Bash(*/rtk read */.aws/credentials*)", "Bash(rtk read */.env*)", @@ -376,6 +398,12 @@ "Bash(*/rtk read */id_ed25519*)", "Bash(rtk read */id_rsa*)", "Bash(*/rtk read */id_rsa*)", + "Bash(rtk read id_rsa*)", + "Bash(*/rtk read id_rsa*)", + "Bash(rtk read *id_rsa*)", + "Bash(*/rtk read *id_rsa*)", + "Bash(rtk read *id_ed25519*)", + "Bash(*/rtk read *id_ed25519*)", "Bash(rtk read */secrets/*)", "Bash(*/rtk read */secrets/*)", "Bash(rtk read .env*)",