Skip to content

Commit

Permalink
gitleaks
Browse files Browse the repository at this point in the history
  • Loading branch information
phongnguyend committed Jul 23, 2024
1 parent dc060cf commit 877a7e1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/gitleaks/gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
title = "gitleaks config"

[[rules]]
id = "Storage.Amazon.AccessKeyID"
description = "Storage.Amazon.AccessKeyID"
regex = '''Abc.{5,20}Xyz'''

[[rules]]
id = "Storage.Amazon.SecretAccessKey"
description = "Storage.Amazon.SecretAccessKey"
regex = '''Abc.{5,100}Xyz'''
2 changes: 2 additions & 0 deletions tools/gitleaks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec gitleaks protect -v --staged --config tools/gitleaks/gitleaks.toml

0 comments on commit 877a7e1

Please sign in to comment.