Skip to content

Commit d19055a

Browse files
committed
fix
1 parent c07215b commit d19055a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/code-health.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ jobs:
151151
node-version-file: package.json
152152
cache: "npm"
153153
- name: Install dependencies
154-
run: npm ci
154+
run: |
155+
apt-get install -y git-secrets
156+
npm ci
155157
- name: Run pre-commit and pre-push hooks
156158
run: ./.husky/_/pre-commit && ./.husky/_/pre-push

.husky/pre-commit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
GIT_SECRETS_PATH=$(which git-secrets)
1+
#!/bin/bash
22

3-
if [ ! -x "$GIT_SECRETS_PATH" ]
3+
if [ ! "$(which git-secrets)" ]
44
then
55
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
66
exit 1

0 commit comments

Comments
 (0)