fix(govulncheck): scan the module as a dependency and read the stream

govulncheck prints indented JSON objects. The line parser read none of
them, so every module read clean.

govulncheck also never reports advisories against the main module of the
tree it scans. A scan of the x/text 0.3.5 source found nothing. The
module is now a dependency of a wrapper module that imports its
packages, and the scan runs at module level.
This commit is contained in:
2026-11-23 18:07:21 +00:00
parent 157814cf08
commit e37c797602
8 changed files with 1691 additions and 88 deletions
@@ -0,0 +1,22 @@
{
"config": {
"protocol_version": "v1.0.0",
"scanner_name": "govulncheck",
"scanner_version": "v1.9.0",
"db": "https://vuln.go.dev",
"db_last_modified": "2026-11-11T02:51:11Z",
"go_version": "go1.26.11",
"scan_level": "module",
"scan_mode": "source"
}
}
{
"progress": {
"message": "Fetching vulnerabilities from the database..."
}
}
{
"progress": {
"message": "Checking the code against the vulnerabilities..."
}
}