diff --git a/cmd/generate/config/rules/config.tmpl b/cmd/generate/config/rules/config.tmpl index 25c2ce66..60ad14b5 100644 --- a/cmd/generate/config/rules/config.tmpl +++ b/cmd/generate/config/rules/config.tmpl @@ -17,6 +17,7 @@ paths = [ '''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''', '''(go.mod|go.sum)$''', '''node_modules''', + '''package-lock.json''', '''vendor''', ] @@ -57,4 +58,4 @@ keywords = [ {{ range $j, $keyword := $rule.Keywords }}"{{$keyword}}",{{end}} ] -{{end}}{{end}} \ No newline at end of file +{{end}}{{end}} diff --git a/config/gitleaks.toml b/config/gitleaks.toml index 4abf91d1..44cb40bf 100644 --- a/config/gitleaks.toml +++ b/config/gitleaks.toml @@ -17,6 +17,7 @@ paths = [ '''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''', '''(go.mod|go.sum)$''', '''node_modules''', + '''package-lock.json''', '''vendor''', ]