We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f037d9 commit fa4ebfdCopy full SHA for fa4ebfd
1 file changed
.git-hooks/pre-push
@@ -210,7 +210,7 @@ while read local_ref local_sha remote_ref remote_sha; do
210
fi
211
212
# Check for private keys.
213
- if echo "$file_text" | grep -qE '-----BEGIN (RSA |EC |DSA )?PRIVATE KEY-----'; then
+ if echo "$file_text" | grep -qE -- '-----BEGIN (RSA |EC |DSA )?PRIVATE KEY-----'; then
214
printf "${RED}✗ BLOCKED: Private key found in: %s${NC}\n" "$file"
215
ERRORS=$((ERRORS + 1))
216
0 commit comments