From 29d739a5a8e304513185811057ea56df7b7faca9 Mon Sep 17 00:00:00 2001 From: SimoneScalco Date: Sun, 16 Jul 2023 16:12:13 +0200 Subject: [PATCH] Fixing issue #373 related to modified-files argument --- prospector/datamodel/advisory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prospector/datamodel/advisory.py b/prospector/datamodel/advisory.py index 15569b35b..f9dad26c2 100644 --- a/prospector/datamodel/advisory.py +++ b/prospector/datamodel/advisory.py @@ -319,7 +319,7 @@ def build_advisory_record( use_nvd: bool = True, publication_date: Optional[str] = None, advisory_keywords: Set[str] = set(), - modified_files: Optional[str] = None, + modified_files: Optional[Set[str]] = None, ) -> AdvisoryRecord: advisory_record = AdvisoryRecord( cve_id=cve_id, @@ -349,7 +349,7 @@ def build_advisory_record( advisory_record.keywords = advisory_keywords if modified_files and len(modified_files) > 0: - advisory_record.files.update(set(modified_files.split(","))) + advisory_record.files.update(modified_files) logger.debug(f"{advisory_record.keywords=}") logger.debug(f"{advisory_record.files=}")