mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
fix(dir): skip opening file&dir if allowlist matches (#1653)
This commit is contained in:
1 parent
6018012b7e
commit
ed205a5f63
7 files changed
+82
-50
No files matched your search
+9
-12
@@ -32,25 +32,22 @@ paths = [
|
||||
'''(.*?)(doc|docx|zip|xls|pdf|bin|socket|vsidx|v2|suo|wsuo|.dll|pdb|exe|gltf)$''',
|
||||
'''go\.(mod|sum|work(\.sum)?)$''',
|
||||
'''(^|/)vendor/modules\.txt$''',
|
||||
'''(^|/)vendor/(github\.com|golang\.org/x|google\.golang\.org|gopkg\.in|istio\.io|k8s\.io|sigs\.k8s\.io)/.*$''',
|
||||
'''(^|/)vendor/(github\.com|golang\.org/x|google\.golang\.org|gopkg\.in|istio\.io|k8s\.io|sigs\.k8s\.io)(/.*)?$''',
|
||||
'''(^|/)gradlew(\.bat)?$''',
|
||||
'''(^|/)gradle\.lockfile$''',
|
||||
'''(^|/)mvnw(\.cmd)?$''',
|
||||
'''(^|/)\.mvn/wrapper/MavenWrapperDownloader\.java$''',
|
||||
'''(^|/)node_modules/.*?$''',
|
||||
'''(^|/)package-lock\.json$''',
|
||||
'''(^|/)yarn\.lock$''',
|
||||
'''(^|/)pnpm-lock\.yaml$''',
|
||||
'''(^|/)npm-shrinkwrap\.json$''',
|
||||
'''(^|/)bower_components/.*?$''',
|
||||
'''(^|/)node_modules(/.*)?$''',
|
||||
'''(^|/)(npm-shrinkwrap\.json|package-lock\.json|pnpm-lock\.yaml|yarn\.lock)$''',
|
||||
'''(^|/)bower_components(/.*)?$''',
|
||||
'''(^|/)(angular|jquery(-?ui)?|plotly|swagger-?ui)[a-zA-Z0-9.-]*(\.min)?\.js(\.map)?$''',
|
||||
'''(^|/)(Pipfile|poetry)\.lock$''',
|
||||
'''(?i)/?(v?env|virtualenv)/lib(64)?/.+$''',
|
||||
'''(?i)(^|/)(lib(64)?/python[23](\.\d{1,2})+/|python/[23](\.\d{1,2})+/lib(64)?/).+$''',
|
||||
'''(?i)(^|/)[a-z0-9_.]+-[0-9.]+\.dist-info/.+$''',
|
||||
'''(^|/)vendor/(bundle|ruby)/.*?$''',
|
||||
'''(?i)/?(v?env|virtualenv)/lib(64)?(/.*)?$''',
|
||||
'''(?i)(^|/)(lib(64)?/python[23](\.\d{1,2})+|python/[23](\.\d{1,2})+/lib(64)?)(/.*)?$''',
|
||||
'''(?i)(^|/)[a-z0-9_.]+-[0-9.]+\.dist-info(/.+)?$''',
|
||||
'''(^|/)vendor/(bundle|ruby)(/.*?)?$''',
|
||||
'''\.gem$''',
|
||||
'''verification-metadata.xml''',
|
||||
'''verification-metadata\.xml''',
|
||||
'''Database.refactorlog''',
|
||||
]
|
||||
stopwords = [
|
||||
|
||||
Reference in new issue
Block a user