fix(scan): findings in test data and excluded paths close, whichever scanner stored them #904

Merged
sharang merged 1 commits from fix/left-out-findings-resolve into main 2026-11-05 17:56:01 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 7324bb295e fix(scan): findings in test data and excluded paths close, whichever scanner stored them
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 / Agent integration (pull_request) Successful in 4m24s
CI / Check (pull_request) Successful in 16m52s
Test data and excluded paths leave the working copy before any stage runs,
but two things kept their findings open:

- A scanner that does not run cannot close its findings. cppcheck runs
  only on a tree with C and the recipe lint only on one with BitBake, so
  once a fixture held the tree's only C or BitBake, resolve_missing never
  saw those scanners complete. resolve_left_out now covers every scanner
  (the PLC stage still passes its own) and runs after resolve_missing.
- gitleaks walks the git history, where the removed files still are, so
  it reported their secrets again on every run. They were kept open, and
  the issue catch-up opened new issues for them. The left-out paths are now
  filtered from the code findings like vendor code.

resolve_left_out keeps a finding this run reported again, as
resolve_missing does, so nothing is closed only to reopen on the next run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 18:38:34 +01:00