Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
fix: kubernetes secret regex
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p authored Apr 16, 2021
1 parent 6f887c3 commit 38eaf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/forbid_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import re
import sys

SECRET_REGEX = r"kind:\ssecret"
SECRET_REGEX = r"^kind:\ssecret"
SOPS_REGEX = r"ENC.AES256"

def contains_secret(filename):
Expand Down

0 comments on commit 38eaf00

Please sign in to comment.