Files
keyhunter/pkg/importer/testdata/gitleaks-sample.csv
salvacybersec 83640ac200 feat(07-02): add Gitleaks JSON + CSV importers
- GitleaksImporter parses native JSON array output to []engine.Finding
- GitleaksCSVImporter parses CSV with header-based column resolution
- normalizeGitleaksRuleID strips suffixes (-api-key, -access-token, ...)
- Shared buildGitleaksFinding helper keeps JSON/CSV paths in lockstep
- Test fixtures + 8 tests covering happy path, empty, invalid, symlink fallback
2026-04-05 23:55:36 +03:00

794 B

1RuleIDCommitFileSymlinkFileSecretMatchStartLineEndLineStartColumnEndColumnAuthorMessageDateEmailFingerprintTags
2openai-api-keyabc123config/app.ymlsk-proj-1234567890abcdef1234key: sk-proj-1234567890abcdef123412121060devadd config2026-04-01T12:00:00Zdev@example.comabc123:config/app.yml:openai-api-key:12key,openai
3aws-access-tokendef456terraform/main.tfAKIAIOSFODNN7EXAMPLEaccess_key = AKIAIOSFODNN7EXAMPLE55552040opstf update2026-04-02T09:30:00Zops@example.comdef456:terraform/main.tf:aws-access-token:55key,aws
4generic-api-keyghi789scripts/deploy.shxoxp-abcdefghijklmnopqrstuvwxyzTOKEN=xoxp-abcdefghijklmnopqrstuvwxyz33850devdeploy script2026-04-03T15:45:00Zdev@example.comghi789:scripts/deploy.sh:generic-api-key:3key,generic