Commit 5a554fe
gitleaks: handle whitespace around token= and case-insensitive domain
Addresses Copilot review on #527:
- rule 1: allow optional whitespace around 'token =' so 'apikey token = <uuid>'
is caught (the no-space 'apikey token=<uuid>' form already matched).
- rule 2: add '(?i)' so case variants of the bioontology.org domain are caught.
Validated with gitleaks 8.30.1: all documented BioPortal key forms flagged,
contextless bare UUID not flagged.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent b33f477 commit 5a554fe
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
0 commit comments