Skip to content

fix: use real packages in feeds-update stubs to avoid osv-scanner exit 127 - #43

Merged
pshickeydev merged 1 commit into
traust-security:mainfrom
pshickeydev:fix/feeds-stub-real-packages
Oct 28, 2026
Merged

pshickeydev merged 1 commit into
traust-security:mainfrom
pshickeydev:fix/feeds-stub-real-packages

Conversation

@pshickeydev

Copy link
Copy Markdown
Member

osv-scanner v2.7.0 exits 127 when package resolution fails during a scan.
The feeds update stubs used fake package names (x, x/x) that cannot
resolve in deps.dev, so every runtime refresh attempt exited 127 and was
reported as a download failure even when the databases loaded fine:

[feeds] osv download failed (exit status 127); 8 baked DBs available
grype: current  osv: unchanged; 8 baked DBs available

Use the same real package names with known advisories as the Containerfile
build-time stub (requests, gin-gonic, lodash, log4j, rack, time, guzzle,
Newtonsoft.Json). Verified in the built f474fc8 image: the scanner now
exits 1 (vulnerabilities found — expected) instead of 127, so genuine
download failures are distinguishable from the expected scan outcome.

Follow-up to #42.


This PR description is AI-generated (Claude Opus 4).

…t 127

osv-scanner v2.7.0 exits 127 when package resolution fails during a
scan. The feeds-update stubs used fake package names (x, x/x) that
cannot resolve in deps.dev, so every refresh attempt exited 127 and
was reported as a download failure even when databases loaded fine.

Use the same real package names with known advisories as the
Containerfile build-time stub (requests, gin-gonic, lodash, log4j,
rack, time, guzzle, Newtonsoft.Json). Verified in the built image:
the scanner now exits 1 (vulnerabilities found — expected) instead
of 127.

Assisted-by: Claude Opus 4
@pshickeydev
pshickeydev requested a review from a team as a code owner October 28, 2026 02:46
@pshickeydev
pshickeydev merged commit ca6dcd9 into traust-security:main Oct 28, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant