Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5.5 f01ccdf893
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 3m39s
CI / Check (pull_request) Successful in 17m39s
feat(scan): per-target excluded paths, left out of the whole scan
A target's settings can now name directories and files to leave out of
every scan stage (scan_config.exclude_paths), on top of the test data
the scan detects itself (#820): no code findings, no SBOM components, no
CVEs.

- Paths are relative to the tree, /-separated, without wildcards; a
  directory is left out with everything in it. normalise_exclude_paths
  (compliance-core) trims, normalises and refuses absolute paths, ..,
  .git, wildcards, over-long paths and more than 50 entries. The API
  applies it while reading the PATCH body, so an invalid path is
  refused with 422 and a message naming it; the dashboard editor uses
  the same function and shows the reason in German or English.
- The scan prunes the configured paths first, then detects test data in
  what is left. prune now removes files as well as directories, and
  never a path that passes a symbolic link (src/link/x with src/link
  pointing elsewhere is left alone).
- The run notes what was left out (SkipCode::ExcludedPaths, stage
  excluded_paths), including configured paths not found in the tree.
- Findings an earlier scan stored there close as NowExcluded, with their
  own issue comment.
- Dashboard: "Von der Prüfung ausgenommen" in the target editor, one
  path per line. Docs: guide/repositories and guide/scanning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 09:30:28 +01:00
..