Skip to content

Commit d908b6c

Browse files
committed
chore: standardize husky hooks
- Fix pre-commit to use `pnpm lint --staged` (was using `pnpm run precommit`) - Add documentation to ALLOWED_PUBLIC_KEY explaining it's the official Socket public test API key and intentionally identical across repos
1 parent 8a14ab4 commit d908b6c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.husky/security-checks.sh
33

44
if [ -z "${DISABLE_PRECOMMIT_LINT}" ]; then
5-
pnpm run precommit
5+
pnpm lint --staged
66
else
77
echo "Skipping lint due to DISABLE_PRECOMMIT_LINT env var"
88
fi

.husky/security-checks.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ YELLOW='\033[1;33m'
1010
GREEN='\033[0;32m'
1111
NC='\033[0m'
1212

13-
# Allowed public API key (used in socket-lib).
13+
# Allowed public API key (used in socket-lib and across all Socket repos).
14+
# This is Socket's official public test API key - safe to commit.
15+
# NOTE: This value is intentionally identical across all Socket repos.
1416
ALLOWED_PUBLIC_KEY="sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api"
1517

1618
echo "${GREEN}Running Socket Security checks...${NC}"

0 commit comments

Comments
 (0)