Add gitleaks pre-commit hook and bump opencode to 1.4.2

This commit is contained in:
2026-04-09 19:12:27 +02:00
parent f40124296d
commit 084881b298
4 changed files with 101 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
# .gitleaks.toml
# Secret detection config — extends gitleaks default rules
title = "opencode-devbox"
[extend]
useDefault = true
# Global allowlist — safe files that may contain example keys/patterns
[[allowlists]]
description = "Allow example and template files"
paths = [
'''\.env\.example$''',
'''\.env\.sample$''',
'''\.env\.template$''',
'''README\.md$''',
'''docs/.*\.md$''',
]