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

Add vulnerability adjustments field to schema #81

Merged
merged 4 commits into from
Jan 29, 2024
Merged

Conversation

ncerutti
Copy link
Contributor

@ncerutti ncerutti commented Dec 15, 2023

analysis_settings_schema.json can contain vulnerability adjustments to apply

Added "vulnerability_adjustments" to the analysis settings schema. Added vulnerability_set to model settings schema.

Used in PR #1415 and PR #1426.

vulnerability_adjustments can contain:
adjustments, a dictionary with vulnerability_ids as keys and adjustment factors as values (e.g. {"4": 1.1, "12": 0.895}.
replace_file, the path to a .csv file containing data on whole vulnerability_ids that must be replaced.
replace_data, a dictionary containing the vulnerability_ids to replace (e.g. {"1": [[1,1,0.01],[1,2,0.02],...], "2": [[1,1,0.4],...]}.

@benhayes21
Copy link
Contributor

can you add model settings to this please?

@ncerutti ncerutti requested a review from sambles January 17, 2024 15:23
@sambles sambles merged commit e63bf1a into main Jan 29, 2024
10 checks passed
@sambles sambles deleted the vuln-adj-field branch January 29, 2024 10:37
@awsbuild awsbuild added this to the 3.2.0 milestone Feb 6, 2024
@sambles sambles mentioned this pull request Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants