Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(osv-linter): tidy up human output #269

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

andrewpollock
Copy link
Collaborator

  • Add a --verbose flag to tone down the output
  • Clean up how the findings are presented
  • Discovered the Alpine ecosystem was being overlooked in error
$ go run ./cmd/osv record lint test_data/
test_data/nointroduced-CVE-2023-41045.json:
         * [R0001]: missing 'introduced' object in event
test_data/nondistinct-CVE-2018-5407.json:
         * [R0002]: overlapping event: "e818b74be2170fbe957a07b0da4401c2b694b3b8"
test_data/nopackage-GHSA-9v2f-6vcg-3hgv.json:
         * [P0001]: package "Gradi0" not found in "PyPI"
         * [P0002]: Failed to find some versions of Gradi0: &errors.errorString{s:"unable to validate package: fail: \"https://pypi.org/pypi/gradi0/json\": bad response: 404"}
2024/09/04 06:42:12 found errors
exit status 1

Add a `--verbose` flag to tone down the output
Clean up how the findings are presented
Discovered the Alpine ecosystem was being overlooked in error

Signed-off-by: Andrew Pollock <[email protected]>
tools/osv-linter/internal/checks/checks.go Outdated Show resolved Hide resolved
@andrewpollock andrewpollock merged commit efbe961 into ossf:main Sep 13, 2024
1 check 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.

2 participants