From a7c23d8765f74f945dac7cf8b715462787653b10 Mon Sep 17 00:00:00 2001 From: Erik Doernenburg Date: Thu, 18 Apr 2024 23:10:48 +0200 Subject: [PATCH] Broadened the scope of the pre-commit hook to include all team ids. --- .githooks/pre-commit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 9e0a2f5..1eb8753 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -7,11 +7,11 @@ # Redirect output to stderr. exec 1>&2 -# Check for presence of the Thoughtworks team identifier, which should +# Check for presence of a development team identifier, which should # not be checked in. Trying to build with it will fail for everyone # who doesn't have a corresponding private key, and this includes the # GitHub Actions runner. -if git grep --cached -q 'LL62P32G5C' CCMenu.xcodeproj/project.pbxproj; then - echo 'Project file contains Thoughtworks code-signing team identifier, which should not be checked in.' +if git grep --cached -q -E '\"DEVELOPMENT_TEAM.*\" = [A-Z0-9]+;' CCMenu.xcodeproj/project.pbxproj; then + echo 'Project file contains development team identifier, which should not be checked in.' exit 1 fi