diff --git a/prospector/datamodel/advisory.py b/prospector/datamodel/advisory.py index 709b14139..d08c99831 100644 --- a/prospector/datamodel/advisory.py +++ b/prospector/datamodel/advisory.py @@ -331,7 +331,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, @@ -361,7 +361,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=}")