fix(grype): parse file sources and scan packages by purl

grype 0.121 prints source.target as a string for file, directory and
purl sources. The parser expected an object and failed every scan.

A bare npm, PyPI or Go archive holds nothing grype can catalog, so a
scan of the archive read minimist 0.0.8 as clean. The scanner now passes
a purl for these registries and falls back to the file for others.
This commit is contained in:
2026-11-23 18:06:57 +00:00
parent 3731ca05ce
commit 65aa2e25dc
9 changed files with 210 additions and 16 deletions
File diff suppressed because one or more lines are too long