CLI script was used for scanning and uploading but failed with the error code 5 - saying No analysis with failed to upload submission of results. In the log the following error was seen
ERROR AnalysisPipeline: Discover failed java.lang.Exception: Discovery child process failed with exit status 13.
Details
2021-01-28 03:29:27,759 ERROR AnalysisPipeline: Discover failed
java.lang.Exception: Discovery child process failed with exit status 13
at com.castsoftware.highlight.discover.Discover.process(Discover.java:67)
at com.castsoftware.highlight.AnalysisPipeline.executeAnalysis(AnalysisPipeline.java:106)
at com.castsoftware.highlight.AnalysisPipeline.process(AnalysisPipeline.java:37)
at com.castsoftware.highlight.CommandLine.run(CommandLine.java:269)
at com.castsoftware.highlight.HighlightAutomation.main(HighlightAutomation.java:11)
The source code was found to have html, xml files and Libraries jars, dlls.
Highlight scans source code for 40+ technologies and html is not part of the analyzers. The JavaScript analyzer in Highlight only looks into html files to see if there is some JavaScript code to be analyzed but if there is no JS code, no result will be produced. So Highlight didn't find any source code for the technologies supported hence it went directly from the discovery step to the upload without listing technologies that it was supposed to discover. Since Highlight could not discover any supported technology, as there was nothing to scan the error was generated.
Workaround or Action Plan
The workaround here is to include a source code file (e.g. a C# file) then re-launch the scan and upload.
Zendesk Ticket Number
#27821
Comments