Skip to content

Commit 62e9fba

Browse files
authored
fix(daily-scan): use filePath instead of packageUrl for multi_json suppression (#120)
DependencyCheck does not assign a pkg:gem/ identifier to .gemspec files scanned with --enableExperimental, so the packageUrl-based rule from #119 had zero matches. Switch to filePath matching which matches the actual file path DC uses internally.
1 parent b563b4d commit 62e9fba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/dependency-check-suppressions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<!--False positive: multi_json gem incorrectly matched to json_project:json CPE (CVE-2020-10663 affects the json gem, not multi_json)-->
44
<suppress>
55
<notes><![CDATA[multi_json is a JSON adapter/wrapper gem, not the json gem affected by CVE-2020-10663. See https://nvd.nist.gov/vuln/detail/CVE-2020-10663]]></notes>
6-
<packageUrl regex="true">^pkg:gem/multi_json@.*$</packageUrl>
6+
<filePath regex="true">.*multi_json.*</filePath>
77
<cpe>cpe:/a:json_project:json</cpe>
88
</suppress>
99
</suppressions>

0 commit comments

Comments
 (0)