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

Filter results of OSSI scan by score, fixes #261 #266

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

timkpaine
Copy link

@timkpaine timkpaine commented Jan 8, 2023

Allows the setting of a minimum vulnerability score threshold, to filter out relatively minor reports. Done for FINOS project usage, to replace my current hack: https://github.com/timkpaine/auditjs-screener. @maoo

This pull request makes the following changes:

  • add an arg to ossi to specify a minimum score threshold, defaults to 0 to match current behavior

It relates to the following issue #s:

cc @bhamail / @DarthHater / @allenhsieh / @ken-duck

Note: I looked for a place to add tests but didn't see a good spot to do so. Here is an example run on auditjs itself

[ timkpaine@mbp-m1 ]: node bin/index.js ossi -q -s 3.6
[1/1] - pkg:npm/[email protected] - 1 vulnerability found!

  Vulnerability Title:  1 vulnerability found
  ID:  sonatype-2022-3677
  Description:  1 non-CVE vulnerability found. To see more details, please create a free account at https://ossindex.sonatype.org/ and request for this information using your registered account
  CVSS Score:  3.7
  CVSS Vector:  CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
  Reference:  https://ossindex.sonatype.org/vulnerability/sonatype-2022-3677

[ timkpaine@mbp-m1 ]: node bin/index.js ossi -q -s 3.8


[ timkpaine@mbp-m1 ]:

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.

[FEATURE] Filtering vulnerabilities by score
1 participant