Skip to content

Commit

Permalink
results: record the RPM package that provided KFP
Browse files Browse the repository at this point in the history
  • Loading branch information
kdudka committed Apr 25, 2024
1 parent 5c4d5de commit d775956
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions py/common/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,11 @@ def handle_known_fp_list(props, results):

# update scan metadata
results.ini_writer.append("known-false-positives", props.known_false_positives)
cmd = ["rpm", "-qf", props.known_false_positives]
(ec, out) = results.get_cmd_output(cmd, shell=False)
if 0 == ec:
# record the RPM package that provided the known-false-positives file
results.ini_writer.append("known-false-positives-rpm", out.strip())

# install global filter of known false positives
filter_cmd = f'csdiff --json-output --show-internal "{props.known_false_positives}" -'
Expand Down

0 comments on commit d775956

Please sign in to comment.