malcontent icon indicating copy to clipboard operation
malcontent copied to clipboard

Add ability to only show diffs for files with upgraded risks

Open egibs opened this issue 1 year ago • 0 comments

Currently, our diff mode will show all added/removed/modified files. For cases where many files are affected between previous and new paths, this output can be noisy and add little value.

This PR adds the ability to only create file reports for diffs where the new risk score is explicitly higher than the old risk score for a given file.

For example, instead of generating a report for a file that was downgraded from MEDIUM to LOW, the file will instead be ignored. This behavior defaults to false and can be used by adding --show-upgraded-risks true when running bincapz.

egibs avatar Aug 21 '24 14:08 egibs