From 430b21f365ad4efce398e769012248a0ead9f958 Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Wed, 11 Nov 2026 03:50:38 +0100 Subject: [PATCH] chore: enable Chainloop Trace hooks for Copilot Assisted-by: GitHub Copilot Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Miguel Martinez Trivino --- .github/hooks/chainloop-trace.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/hooks/chainloop-trace.json diff --git a/.github/hooks/chainloop-trace.json b/.github/hooks/chainloop-trace.json new file mode 100644 index 000000000..b1a43f7ac --- /dev/null +++ b/.github/hooks/chainloop-trace.json @@ -0,0 +1,29 @@ +{ + "version": 1, + "hooks": { + "postToolUse": [ + { + "type": "command", + "bash": "sh -c 'if ! command -v chainloop \u003e/dev/null 2\u003e\u00261; then exit 0; fi; exec chainloop trace hook copilot post-tool-use'" + } + ], + "preToolUse": [ + { + "type": "command", + "bash": "sh -c 'if ! command -v chainloop \u003e/dev/null 2\u003e\u00261; then exit 0; fi; exec chainloop trace hook copilot pre-tool-use'" + } + ], + "sessionEnd": [ + { + "type": "command", + "bash": "sh -c 'if ! command -v chainloop \u003e/dev/null 2\u003e\u00261; then exit 0; fi; exec chainloop trace hook copilot session-end'" + } + ], + "sessionStart": [ + { + "type": "command", + "bash": "sh -c 'if ! command -v chainloop \u003e/dev/null 2\u003e\u00261; then exit 0; fi; exec chainloop trace hook copilot session-start'" + } + ] + } +}