Install gitleaks

This commit is contained in:
Trevi Awater
2024-11-21 10:51:46 +01:00
parent b92331d904
commit 6ee1e09671
5 changed files with 66 additions and 17 deletions

13
.gitleaks.toml Normal file
View File

@@ -0,0 +1,13 @@
title = "Gitleaks Configuration"
[[rules]]
id = "generic-api-key" # Add a unique ID for the rule
description = "Generic API Key"
regex = '''(?i)(api_key|apikey|auth_token|access_token|secret)[:=]["']?[a-z0-9]{32,}'''
tags = ["apikey", "secret"]
[allowlist]
paths = [
".env", # Matches .env file in any directory
".gitignore" # Matches .gitignore file
]