Defined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-workflow.sh",
"timeout": 10000,
"description": "Validates GCP Workload Identity Federation configuration and best practices",
"continueOnError": false
}
],
"enabled": true,
"matcher": "Write|Edit",
"priority": 100,
"description": "Validate GitHub Actions workflow files before writing",
"filePattern": ".github/workflows/*.{yml,yaml}"
}
]
}{
"riskFlags": {
"touchesBash": false,
"matchAllTools": false,
"touchesFileWrites": true
},
"typeStats": {
"command": 1
},
"eventStats": {
"PreToolUse": 1
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 1,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}