Update regex for AWS secret key

This commit is contained in:
Dirk Pahl committed 2021-10-26 12:35:35 +02:00
1 parent 5afe59d2fa
commit 714c0bef1e
2 files changed
+1 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ title = "gitleaks config"
[[rules]] [[rules]]
description = "AWS Secret Key" description = "AWS Secret Key"
regex = '''(?i)aws(.{0,20})?(?-i)['\"][0-9a-zA-Z\/+]{40}['\"]''' regex = '''(?i)aws(.{0,20})?=.[\'\"0-9a-zA-Z\/+]{40}'''
tags = ["key", "AWS"] tags = ["key", "AWS"]
[[rules]] [[rules]]
-1
View File
@@ -69,7 +69,6 @@ func TestScan(t *testing.T) {
} }
} }
func moveDotGit(from, to string) error { func moveDotGit(from, to string) error {
repoDirs, err := ioutil.ReadDir("../testdata/repos") repoDirs, err := ioutil.ReadDir("../testdata/repos")
if err != nil { if err != nil {