From 0cf9f060881d772f909167ee9ab2017f365cf189 Mon Sep 17 00:00:00 2001 From: Jono Yang Date: Tue, 29 Apr 2025 09:34:50 -0700 Subject: [PATCH] Only process match results for file matches Signed-off-by: Jono Yang --- scanpipe/pipes/matchcode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scanpipe/pipes/matchcode.py b/scanpipe/pipes/matchcode.py index 7c5ea9ef3d..1def6805a7 100644 --- a/scanpipe/pipes/matchcode.py +++ b/scanpipe/pipes/matchcode.py @@ -408,6 +408,8 @@ def create_packages_from_match_results(project, match_results): ) match_resources = match_results.get("files", []) for match_resource in match_resources: + if match_resource["type"] != "file": + continue match_resource_extra_data = match_resource["extra_data"] if match_resource_extra_data: resource = project.codebaseresources.get(path=match_resource["path"])