From 2fdf865fc3d8fa6d3d1fc62a57f26995d1309a16 Mon Sep 17 00:00:00 2001 From: parveen-dotnet Date: Mon, 16 Mar 2026 08:08:49 +0530 Subject: [PATCH] fix: Change 'bash' to 'command' in hooks.json As per VS code docs, I don't find "bash" as a property in hooks, the best/suitable property is "command". Reference: https://code.visualstudio.com/docs/copilot/customization/hooks#_hook-command-properties --- hooks/governance-audit/hooks.json | 6 +++--- hooks/secrets-scanner/hooks.json | 2 +- hooks/session-auto-commit/hooks.json | 2 +- hooks/session-logger/hooks.json | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hooks/governance-audit/hooks.json b/hooks/governance-audit/hooks.json index 6c08f6700..e456b11ff 100644 --- a/hooks/governance-audit/hooks.json +++ b/hooks/governance-audit/hooks.json @@ -4,7 +4,7 @@ "sessionStart": [ { "type": "command", - "bash": ".github/hooks/governance-audit/audit-session-start.sh", + "command": ".github/hooks/governance-audit/audit-session-start.sh", "cwd": ".", "timeoutSec": 5 } @@ -12,7 +12,7 @@ "sessionEnd": [ { "type": "command", - "bash": ".github/hooks/governance-audit/audit-session-end.sh", + "command": ".github/hooks/governance-audit/audit-session-end.sh", "cwd": ".", "timeoutSec": 5 } @@ -20,7 +20,7 @@ "userPromptSubmitted": [ { "type": "command", - "bash": ".github/hooks/governance-audit/audit-prompt.sh", + "command": ".github/hooks/governance-audit/audit-prompt.sh", "cwd": ".", "env": { "GOVERNANCE_LEVEL": "standard", diff --git a/hooks/secrets-scanner/hooks.json b/hooks/secrets-scanner/hooks.json index 1258880c8..10048ac33 100644 --- a/hooks/secrets-scanner/hooks.json +++ b/hooks/secrets-scanner/hooks.json @@ -4,7 +4,7 @@ "sessionEnd": [ { "type": "command", - "bash": ".github/hooks/secrets-scanner/scan-secrets.sh", + "command": ".github/hooks/secrets-scanner/scan-secrets.sh", "cwd": ".", "env": { "SCAN_MODE": "warn", diff --git a/hooks/session-auto-commit/hooks.json b/hooks/session-auto-commit/hooks.json index bcb18d39e..66b91758e 100644 --- a/hooks/session-auto-commit/hooks.json +++ b/hooks/session-auto-commit/hooks.json @@ -4,7 +4,7 @@ "sessionEnd": [ { "type": "command", - "bash": ".github/hooks/session-auto-commit/auto-commit.sh", + "command": ".github/hooks/session-auto-commit/auto-commit.sh", "timeoutSec": 30 } ] diff --git a/hooks/session-logger/hooks.json b/hooks/session-logger/hooks.json index c4964d2ad..82712ee80 100644 --- a/hooks/session-logger/hooks.json +++ b/hooks/session-logger/hooks.json @@ -4,7 +4,7 @@ "sessionStart": [ { "type": "command", - "bash": ".github/hooks/session-logger/log-session-start.sh", + "command": ".github/hooks/session-logger/log-session-start.sh", "cwd": ".", "timeoutSec": 5 } @@ -12,7 +12,7 @@ "sessionEnd": [ { "type": "command", - "bash": ".github/hooks/session-logger/log-session-end.sh", + "command": ".github/hooks/session-logger/log-session-end.sh", "cwd": ".", "timeoutSec": 5 } @@ -20,7 +20,7 @@ "userPromptSubmitted": [ { "type": "command", - "bash": ".github/hooks/session-logger/log-prompt.sh", + "command": ".github/hooks/session-logger/log-prompt.sh", "cwd": ".", "env": { "LOG_LEVEL": "INFO"