Ignore glTF & JPEG XL files (#3325)

* feat: ignore glTF files

Inspired by https://github.com/gitleaks/gitleaks/issues/1526

* feat: ignore JPEG XL

* feat: ignore .avifs in addition to .avif
This commit is contained in:
Richard Gomez
2024-09-24 08:00:02 -07:00
committed by GitHub
parent e96c8e2f0a
commit b2311b4ad2
+6
View File
@@ -11,6 +11,7 @@ var (
// images // images
"apng": {}, "apng": {},
"avif": {}, "avif": {},
"avifs": {},
"bmp": {}, "bmp": {},
"dia": {}, // Open-source Visio clone "dia": {}, // Open-source Visio clone
"gif": {}, "gif": {},
@@ -18,6 +19,7 @@ var (
"ico": {}, // Icon file "ico": {}, // Icon file
"jpg": {}, "jpg": {},
"jpeg": {}, "jpeg": {},
"jxl": {},
"png": {}, "png": {},
"svg": {}, "svg": {},
"svgz": {}, // Compressed Scalable Vector Graphics file "svgz": {}, // Compressed Scalable Vector Graphics file
@@ -69,6 +71,10 @@ var (
"ttf": {}, // TrueType font "ttf": {}, // TrueType font
"woff": {}, // Web Open Font Format "woff": {}, // Web Open Font Format
"woff2": {}, // Web Open Font Format 2 "woff2": {}, // Web Open Font Format 2
// misc
"glb": {}, // 3d models (binary)
"gltf": {}, // 3d models (JSON/ASCII)
} }
binaryExtensions = map[string]struct{}{ binaryExtensions = map[string]struct{}{