Grant writable permissions for cache files
@@ -169,7 +169,12 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
File.separator + revision.version.toString() + ".json";
File outputFile = new File(outputPath);
- outputFile.getParentFile().mkdirs();
+ outputFile.setExecutable(true, false);
+ outputFile.setWritable(true, false);
+ outputFile.setReadable(true, false);
+
+ if(!outputFile.getParentFile().exists()) outputFile.getParentFile().mkdirs();
+ if(!outputFile.exists()) outputFile.createNewFile();
FileWriter writer = new FileWriter(outputFile);
writer.write(output);
