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>