feat(findings): one finding for a rule that fires all over a repository (#464) #477

Merged
sharang merged 2 commits from feat/464-group-findings into main 2026-10-05 23:52:07 +00:00
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 687aed2c8c fix(findings): a group's issue is found by its fingerprint only (#464)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 8m20s
A group has the title of its rule's single findings, so the title
fallback of the issue search found one of their issues (being closed as
grouped) and no issue was opened for the group. The refreshed places of
a stored group also set updated_at.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 01:40:10 +02:00
Sharang ParnerkarandClaude Opus 5.5 944241392d feat(findings): one finding for a rule that fires all over a repository (#464)
More than five low or info findings of one scanner's rule in one
repository are now one finding that lists every place (file:line), so
38 identical logging findings in an Android app are one finding and one
tracker issue. Its fingerprint comes from (repository, scanner, rule),
not from a place, so triage and status stay with it from scan to scan;
a later scan updates its list of places.

Findings stored one per place before are closed with the new scan change
"grouped" (not "no longer found"), with a comment on their issues that
says so; a person's decision on one of them stays.

Configurable: FINDING_GROUP_THRESHOLD (default 5, or off),
FINDING_GROUP_SCANNERS (per scanner, e.g. mobsfscan=3,gitleaks=off),
FINDING_GROUP_SEVERITIES (default low,info); checked at startup.

gitleaks' generic-api-key no longer reports the hex ids in Eclipse
*.launch debugger configurations; every such hit in the pilot firmware
repositories was one. Its other rules still apply there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
2026-10-06 01:40:10 +02:00