feat(findings): one finding for a rule that fires all over a repository (#464)
CI / Check (push) Skipped
CI / Check (push) Skipped
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
This commit is contained in:
1 parent
34688fa322
commit
0451a03c8a
13 files changed
+830
-11
No files matched your search
@@ -44,6 +44,12 @@ CVE_MONITOR_SCHEDULE=0 0 0 * * *
|
||||
# GIT_SOURCE_HOST_PATTERN=^[a-z0-9-]+\.code(-stage)?\.breakpilot\.com$
|
||||
# GIT_SOURCE_SYNC_MINUTES=30
|
||||
# WEBHOOK_PUBLIC_URL=https://pruefwerk-hooks.example.com
|
||||
# Grouping (#464): more than this many low/info findings of one scanner's rule
|
||||
# in one repository become one finding listing every place (`off`: never).
|
||||
# Per scanner as `scanner=N` or `scanner=off`; the severities that are grouped.
|
||||
# FINDING_GROUP_THRESHOLD=5
|
||||
# FINDING_GROUP_SCANNERS=mobsfscan=5,gitleaks=off
|
||||
# FINDING_GROUP_SEVERITIES=low,info
|
||||
GIT_CLONE_BASE_PATH=/tmp/compliance-scanner/repos
|
||||
# NuGet licenses (#467): look up licenses the tree's .nuspec files do not give
|
||||
# on api.nuget.org (package id and version only; never for ids a nuget.config
|
||||
|
||||
Reference in new issue
Block a user