From 831a0bc1c39446cb055d6abafa5e201fb8d2d81a Mon Sep 17 00:00:00 2001 From: Tim Marston Date: Thu, 5 Nov 2026 10:15:16 +0000 Subject: [PATCH 1/2] exclude public CA certs from pre-commit secrets scan --- .gitallowed | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitallowed b/.gitallowed index de54b606c..198573f26 100644 --- a/.gitallowed +++ b/.gitallowed @@ -8,4 +8,5 @@ .*assembly: AssemblyFileVersion* .*Version=* .*poetry.lock:* -.*README.md:* \ No newline at end of file +.*README.md:* +specification/documentation/certs/[a-z-]+\.crt:1:-----BEGIN[[:blank:]]CERTIFICATE-----$ From b5ba0d7e911f59d42abb2d9dba8536af34dd2939 Mon Sep 17 00:00:00 2001 From: Tim Marston Date: Thu, 5 Nov 2026 10:22:14 +0000 Subject: [PATCH 2/2] fixed Makefile `make install-hooks` --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b6b058629..68597ac0b 100644 --- a/Makefile +++ b/Makefile @@ -9,16 +9,19 @@ install-node: npm install --legacy-peer-deps --verbose cd sandbox && npm install --legacy-peer-deps +#Resolves the hooks directory so it also works in submodules, worktrees and with core.hooksPath. +GIT_HOOKS_DIR := $(shell git rev-parse --git-path hooks) + #Configures Git Hooks, which are scripts that run given a specified event. -git/hooks/pre-commit: - cp scripts/pre-commit .git/hooks/pre-commit - chmod +x .git/hooks/pre-commit +$(GIT_HOOKS_DIR)/pre-commit: scripts/pre-commit + cp scripts/pre-commit $@ + chmod +x $@ #Condensed Target to run all targets above. -install: install-node install-python git/hooks/pre-commit +install: install-node install-python install-hooks #Referenced within readme -install-hooks: .git/hooks/pre-commit +install-hooks: $(GIT_HOOKS_DIR)/pre-commit #Run the npm linting script (specified in package.json). Used to check the syntax and formatting of files. lint: .check-licenses .ensure-test-documentation-validity .lint-js .lint-python