Skip to content

Commit 0a4c7b1

Browse files
committed
fix(gitleaks): migrate from .gitleaksignore to path-based allowlist
- Add GitHub Actions workflows to allowlist paths in .gitleaks.toml - Remove .gitleaksignore file (fingerprint-based ignoring is commit-dependent) - Add .gitleaksignore to allowlist to prevent false positives on fingerprints
1 parent 388c20e commit 0a4c7b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/.gitleaks.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "Generic API Key"
99
id = "generic-api-key"
1010
regex = '''(?i)(\bapi[_-]?key\b|\bsecret\b)'''
1111
[rules.allowlist]
12-
description = "Allowlist for test credentials and fixtures"
12+
description = "Allowlist for test credentials, fixtures, and GitHub Actions workflows"
1313
regexes = [
1414
'''gitleaks:allow''',
1515
'''L1cReZseWmqcYra3vrqj9TPBGHhvDQFD2jYuu1RUj5rrfpVLiKHs''',
@@ -21,4 +21,6 @@ paths = [
2121
'''pkg/internal/testabilities/fixture/.*''',
2222
'''pkg/internal/regressiontests/.*''',
2323
'''examples/.*''',
24+
'''\.github/workflows/.*\.yml''',
25+
'''\.gitleaksignore''',
2426
]

.gitleaksignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)