|
|
@@ -37,7 +37,7 @@
|
|
|
{
|
|
|
"type": "command",
|
|
|
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"",
|
|
|
- "if": "Bash(git commit:*)|Bash(gt create:*)|Bash(gt modify:*)",
|
|
|
+ "if": "Bash(git commit:*)",
|
|
|
"asyncRewake": true,
|
|
|
"rewakeMessage": "Background security review of commit — address or acknowledge the findings below, then continue with the user's original request or continue waiting for their reply:",
|
|
|
"rewakeSummary": "Commit security review found issues"
|
|
|
@@ -45,7 +45,31 @@
|
|
|
{
|
|
|
"type": "command",
|
|
|
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"",
|
|
|
- "if": "Bash(git push:*)|Bash(gt submit:*)",
|
|
|
+ "if": "Bash(git push:*)",
|
|
|
+ "asyncRewake": true,
|
|
|
+ "rewakeMessage": "Background security review of pushed commits not yet reviewed — address or acknowledge the findings below, then continue with the user's original request or continue waiting for their reply:",
|
|
|
+ "rewakeSummary": "Push security review found issues"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "command",
|
|
|
+ "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"",
|
|
|
+ "if": "Bash(gt create:*)",
|
|
|
+ "asyncRewake": true,
|
|
|
+ "rewakeMessage": "Background security review of commit — address or acknowledge the findings below, then continue with the user's original request or continue waiting for their reply:",
|
|
|
+ "rewakeSummary": "Commit security review found issues"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "command",
|
|
|
+ "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"",
|
|
|
+ "if": "Bash(gt modify:*)",
|
|
|
+ "asyncRewake": true,
|
|
|
+ "rewakeMessage": "Background security review of commit — address or acknowledge the findings below, then continue with the user's original request or continue waiting for their reply:",
|
|
|
+ "rewakeSummary": "Commit security review found issues"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "type": "command",
|
|
|
+ "command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/sg-python.sh\" \"${CLAUDE_PLUGIN_ROOT}/hooks/security_reminder_hook.py\"",
|
|
|
+ "if": "Bash(gt submit:*)",
|
|
|
"asyncRewake": true,
|
|
|
"rewakeMessage": "Background security review of pushed commits not yet reviewed — address or acknowledge the findings below, then continue with the user's original request or continue waiting for their reply:",
|
|
|
"rewakeSummary": "Push security review found issues"
|