We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c07215b commit d19055aCopy full SHA for d19055a
.github/workflows/code-health.yml
@@ -151,6 +151,8 @@ jobs:
151
node-version-file: package.json
152
cache: "npm"
153
- name: Install dependencies
154
- run: npm ci
+ run: |
155
+ apt-get install -y git-secrets
156
+ npm ci
157
- name: Run pre-commit and pre-push hooks
158
run: ./.husky/_/pre-commit && ./.husky/_/pre-push
.husky/pre-commit
@@ -1,6 +1,6 @@
1
-GIT_SECRETS_PATH=$(which git-secrets)
+#!/bin/bash
2
3
-if [ ! -x "$GIT_SECRETS_PATH" ]
+if [ ! "$(which git-secrets)" ]
4
then
5
echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets"
6
exit 1
0 commit comments