Development record
ultra-v0.6.8 A3: gitleaks toFindings in internal/adapter/gitleaks/gitleaks.go uses strings.Index(ln, needle) per line and never advances a cursor, so when gitleaks reports the same secret twice on one line both reports yield a Finding at the first occurrence; dedupFindings collapses them, sealLine masks one span, and the second occurrence survives verbatim. Retry logs and request+response echoes are exactly this shape. Fix: advance a cursor past each match so every occurrence on the line becomes its own Finding.
issueresolvedminoriss-2608291814551110
ultra-v0.6.8 A3: gitleaks toFindings in internal/adapter/gitleaks/gitleaks.go uses strings.Index(ln, needle) per line and never advances a cursor, so when gitleaks reports the same secret twice on one line both reports yield a Finding at the first occurrence; dedupFindings collapses them, sealLine masks one span, and the second occurrence survives verbatim. Retry logs and request+response echoes are exactly this shape. Fix: advance a cursor past each match so every occurrence on the line becomes its own Finding.
Frontmatter
| id | iss-2608291814551110 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2608291814551110-gitleaks-to-findings-misses-intra-line.md
open on GitHub ↗ · commit history ↗