Files
pruefwerk/compliance-agent/tests
Sharang ParnerkarandClaude Opus 5.5 5d6737ecd8
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 3m51s
CI / Check (pull_request) Failing after 4m14s
feat(scan): leave test data (fixtures, testdata) out of the whole scan
A repository's fixtures are not what it ships, but every stage scanned
them as product code: our own repo got 211 CVE issues from sample
lockfiles (struts2 2.3.30, spring 5.0.0, urllib3 1.24.1) and 20 high
code issues from sample code under fixtures/.

Directories named fixtures, __fixtures__, testdata, test_data, test-data,
test-fixtures or test_fixtures (at any depth, top-most only, never the
tree itself, never through a link) now leave the scan's working copy
before the first stage, so no stage reports them: no code findings, no
SBOM components, no CVEs. tests/, spec/ and examples/ are scanned as
before.

- Only a working copy under the clone or artifact directories is pruned;
  anything else is refused. The git fetch now checks out with
  recreate_missing, and an upload is unpacked again every scan, so the
  directories come back before the next scan applies the current rules.
- The run notes what was left out (SkipCode::TestData, stage test_data).
- Findings an earlier scan stored there close as NowTestData, with their
  own issue comment, not as fixed.
- CVE issues of the removed components close on the next complete scan,
  as for a removed dependency.

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