enh(secu): add gitleaks configuration (#5520)

Co-authored-by: sc <sc@centreon>
This commit is contained in:
Stéphane Chapron 2025-04-01 12:04:25 +02:00 committed by GitHub
parent f7b45b2193
commit 035e018397
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

3
.github/CODEOWNERS vendored
View File

@ -21,3 +21,6 @@ tests/** @centreon/owners-robot-e2e
packaging/** @centreon/owners-perl
selinux/** @centreon/owners-pipelines
.github/scripts/pod_spell_check.t @centreon/owners-perl
.gitleaks.toml @centreon/owners-security
.gitleaksignore @centreon/owners-security

19
.gitleaks.toml Normal file
View File

@ -0,0 +1,19 @@
title = "Gitleaks custom rules"
[extend]
useDefault = true
[allowlist]
paths = [
'''vendor\/''',
'''(.*?)\.rptlibrary''',
'''pnpm-lock\.yaml''',
'''\.gitleaks\.toml$''',
'''(.*?)(jpg|gif|doc|pdf|bin)$'''
]
regexTarget = "match"
regexes = [
'''ABCDEFG1234567890''',
'''s\.aBCD123DEF456GHI789JKL012'''
]