Compare commits

..
5 Commits
Author SHA1 Message Date
wolframhaussig 1fb3a77eb8 Update gitleaks.toml (#1116)
Use Word Boundaries for EasyPost Tokens
2023-03-14 11:06:17 -05:00
Zachary Rice 765bcd5854 Update gitleaks.yml (#1117) 2023-03-13 08:35:03 -05:00
Juan C. Mancebo 11c2ad01a4 Add gradle.lockfile to allowlist (#1112) 2023-03-03 10:24:21 -06:00
SADIK KUZU e55d3975ec Update pre-commit rev tag in README (#1108) 2023-03-01 10:55:35 -06:00
Joost Voskuil 2dd9946052 Add pnpm-lock.yaml and Database.refactorlo (#1109) 2023-02-28 15:07:38 -06:00
5 changed files with 13 additions and 8 deletions

No files matched your search

+1
View File
@@ -11,3 +11,4 @@ jobs:
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}}
+1 -1
View File
@@ -106,7 +106,7 @@ jobs:
```
repos:
- repo: https://github.com/zricethezav/gitleaks
rev: v8.15.3
rev: v8.16.0
hooks:
- id: gitleaks
```
+3
View File
@@ -16,8 +16,11 @@ paths = [
'''gitleaks.toml''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''',
'''(go.mod|go.sum)$''',
'''gradle.lockfile''',
'''node_modules''',
'''package-lock.json''',
'''pnpm-lock.yaml''',
'''Database.refactorlog''',
'''vendor''',
]
+2 -2
View File
@@ -12,7 +12,7 @@ func EasyPost() *config.Rule {
r := config.Rule{
Description: "EasyPost API token",
RuleID: "easypost-api-token",
Regex: regexp.MustCompile(`EZAK(?i)[a-z0-9]{54}`),
Regex: regexp.MustCompile(`\bEZAK(?i)[a-z0-9]{54}`),
Keywords: []string{"EZAK"},
}
@@ -28,7 +28,7 @@ func EasyPostTestAPI() *config.Rule {
r := config.Rule{
Description: "EasyPost test API token",
RuleID: "easypost-test-api-token",
Regex: regexp.MustCompile(`EZTK(?i)[a-z0-9]{54}`),
Regex: regexp.MustCompile(`\bEZTK(?i)[a-z0-9]{54}`),
Keywords: []string{"EZTK"},
}
+6 -5
View File
@@ -16,8 +16,11 @@ paths = [
'''gitleaks.toml''',
'''(.*?)(jpg|gif|doc|docx|zip|xls|pdf|bin|svg|socket)$''',
'''(go.mod|go.sum)$''',
'''gradle.lockfile''',
'''node_modules''',
'''package-lock.json''',
'''pnpm-lock.yaml''',
'''Database.refactorlog''',
'''vendor''',
]
@@ -354,7 +357,7 @@ keywords = [
[[rules]]
description = "EasyPost API token"
id = "easypost-api-token"
regex = '''EZAK(?i)[a-z0-9]{54}'''
regex = '''\bEZAK(?i)[a-z0-9]{54}'''
keywords = [
"ezak",
]
@@ -362,7 +365,7 @@ keywords = [
[[rules]]
description = "EasyPost test API token"
id = "easypost-test-api-token"
regex = '''EZTK(?i)[a-z0-9]{54}'''
regex = '''\bEZTK(?i)[a-z0-9]{54}'''
keywords = [
"eztk",
]
@@ -490,9 +493,6 @@ keywords = [
"key","api","token","secret","client","passwd","password","auth","access",
]
[rules.allowlist]
paths = [
'''Database.refactorlog'''
]
stopwords= [
"client",
"endpoint",
@@ -2781,3 +2781,4 @@ keywords = [
"zendesk",
]