Don't create cache file if output is empty
@@ -293,6 +293,11 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
output.put(entry.getKey(), pathsJson);
}
+ if(output.length() == 0) {
+ logger.info("Revision doesn't have vulnerable deps: " + revision.toString());
+ return;
+ }
+
// Write the output into the file
try {
var firstLetter = revision.artifactId.substring(0, 1);
