Files
gohoarder/pkg/scanner/grype/testdata/file-minimist-0.0.8.json
T
lukaszraczylo 65aa2e25dc 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.
2026-11-23 18:06:57 +00:00

2 lines
5.6 KiB
JSON

{"matches":[],"source":{"type":"file","target":"minimist-0.0.8.tgz"},"distro":{"name":"","version":"","idLike":null},"descriptor":{"name":"grype","version":"0.121.2","configuration":{"output":["json"],"file":"","pretty":false,"distro":"","add-cpes-if-none":false,"output-template-file":"","check-for-app-update":true,"only-fixed":false,"only-notfixed":false,"ignore-wontfix":"","platform":"","search":{"scope":"squashed","unindexed-archives":false,"indexed-archives":true},"ignore":[{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"kernel-headers","version":"","language":"","type":"rpm","location":"","upstream-name":"kernel"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"},{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"linux(-.*)?-headers-.*","version":"","language":"","type":"deb","location":"","upstream-name":"linux.*"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"},{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"linux-libc-dev","version":"","language":"","type":"deb","location":"","upstream-name":"linux"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"},{"vulnerability":"","include-aliases":false,"reason":"","namespace":"","fix-state":"","package":{"name":"linux-kbuild-.*","version":"","language":"","type":"deb","location":"","upstream-name":"linux.*"},"vex-status":"","vex-justification":"","match-type":"exact-indirect-match"}],"exclude":[],"externalSources":{"enable":false,"maven":{"searchUpstreamBySha1":true,"baseUrl":"https://search.maven.org/solrsearch/select","rateLimit":300000000}},"match":{"java":{"using-cpes":false},"jvm":{"using-cpes":true},"dotnet":{"using-cpes":false},"golang":{"using-cpes":false,"always-use-cpe-for-stdlib":false,"allow-main-module-pseudo-version-comparison":false},"javascript":{"using-cpes":false},"python":{"using-cpes":false},"ruby":{"using-cpes":false},"rust":{"using-cpes":false},"hex":{"using-cpes":false},"stock":{"using-cpes":true},"dpkg":{"using-cpes":false,"missing-epoch-strategy":"zero","use-cpes-for-eol":false},"rpm":{"using-cpes":false,"missing-epoch-strategy":"auto","use-cpes-for-eol":false}},"fail-on-severity":"","registry":{"insecure-skip-tls-verify":false,"insecure-use-http":false,"ca-cert":""},"show-suppressed":false,"include-matcher-suppressions":false,"by-cve":false,"SortBy":{"sort-by":"risk"},"name":"","default-image-pull-source":"","from":null,"vex-documents":[],"vex-add":[],"match-upstream-kernel-headers":false,"fix-channel":{"redhat-eus":{"apply":"auto","versions":">= 8.0"},"ubuntu-esm":{"apply":"auto","versions":""}},"timestamp":true,"alerts":{"enable-eol-distro-warnings":true},"db":{"cache-dir":"/home/scanner/.cache/grype/db","update-url":"https://grype.anchore.io/databases","ca-cert":"","auto-update":true,"validate-by-hash-on-start":true,"validate-age":true,"max-allowed-built-age":432000000000000,"require-update-check":false,"update-available-timeout":30000000000,"update-download-timeout":300000000000,"max-update-check-frequency":7200000000000},"exp":{},"dev":{"db":{"debug":false}}},"db":{"status":{"schemaVersion":"v6.1.10","from":"https://grype.anchore.io/databases/v6/vulnerability-db_v6.1.10_2026-11-23T00:24:20Z_1795415312.tar.zst?checksum=sha256%3A3d24f57cd3587e2c73f686decc7ad04b213d1f3575bcf1dd847e42df94560f14","built":"2026-11-23T06:28:32Z","path":"/home/scanner/.cache/grype/db/6/vulnerability.db","valid":true},"providers":{"alma":{"captured":"2026-11-23T00:24:25Z","input":"xxh64:9fd4413e0321c324"},"alpine":{"captured":"2026-11-23T00:24:52Z","input":"xxh64:626087ccb8a36373"},"amazon":{"captured":"2026-11-23T00:24:34Z","input":"xxh64:083d74859c705607"},"arch":{"captured":"2026-11-23T00:24:23Z","input":"xxh64:767233e7552ae911"},"bitnami":{"captured":"2026-11-23T00:24:30Z","input":"xxh64:542814d1e958c4e3"},"chainguard":{"captured":"2026-11-23T00:25:25Z","input":"xxh64:40d4772eb76c342f"},"chainguard-libraries":{"captured":"2026-11-23T00:24:52Z","input":"xxh64:73b958306e2dce58"},"debian":{"captured":"2026-11-23T00:24:40Z","input":"xxh64:f9a6456f81777f29"},"dhi":{"captured":"2026-11-23T00:24:45Z","input":"xxh64:a6b8e4e1d1aecfa1"},"echo":{"captured":"2026-11-23T00:24:27Z","input":"xxh64:a2e80388a7d54bb0"},"eol":{"captured":"2026-11-23T00:24:23Z","input":"xxh64:3a3243012dede451"},"epss":{"captured":"2026-11-23T00:24:28Z","input":"xxh64:617f4201c8a347c1"},"fedora":{"captured":"2026-11-23T00:24:35Z","input":"xxh64:55853e5256082c94"},"github":{"captured":"2026-11-23T00:24:47Z","input":"xxh64:1db626b836a7b9a3"},"govulndb":{"captured":"2026-11-23T00:24:22Z","input":"xxh64:4e5d90d5b45aeeb1"},"hummingbird":{"captured":"2026-11-23T00:27:40Z","input":"xxh64:968bec75e99f7d9a"},"kev":{"captured":"2026-11-23T00:24:27Z","input":"xxh64:f9dc8833117b9cfb"},"mariner":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:f8299848201c9565"},"minimos":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:4f5198a5f5c667f3"},"nvd":{"captured":"2026-11-23T00:25:29Z","input":"xxh64:2a0ff8d069da733e"},"oracle":{"captured":"2026-11-23T00:24:36Z","input":"xxh64:ef43f7a6df2d7adf"},"photon":{"captured":"2026-11-23T00:24:26Z","input":"xxh64:830daa42e4331294"},"rhel":{"captured":"2026-11-23T00:26:09Z","input":"xxh64:fc3e7c2e917a2b8d"},"secureos":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:16d87472840d1693"},"sles":{"captured":"2026-11-23T00:26:40Z","input":"xxh64:afa8d8bc8fe91131"},"ubuntu":{"captured":"2026-11-23T00:25:23Z","input":"xxh64:c4e9de4958b5ec11"},"wolfi":{"captured":"2026-11-23T00:24:20Z","input":"xxh64:2d968f4266204048"}}},"timestamp":"2026-11-23T17:56:22.18207516Z"}}