Closed sourabhgupta385 closed 7 months ago
I got trivy working by changing the command to:
sh script: 'trivy --cache-dir /tmp/trivy image --format json -o trivy-report.json --input hello_world_${BUILD_NUMBER}.tar'
Basically, trivy has changed schema of json output in new version which is not compatible here yet. Previous version is working absolutely fine.
@sourabhgupta385 did u resolved the nodejsscan issue? Even I'm getting the same issue
Hi @ihangnalli-cci ,
I did not investigated much on nodejsscan error. I then chose to prefer HTML report publishing in Jenkins for NodeJs scan.
Ok. Thanks for the reply @sourabhgupta385
@sourabhgupta385 I found what was the issues with this. It was not getting uploaded because the file formatting of the report generated of nodejsscan json file is different from the previous version.
@anandtiwarics Can you look into this. I have attached a sample file for your reference. sample.zip
we are currently supported file list https://github.com/archerysec/report-sample/tree/main/Trivy
Reports are generated in Jenkins using:
Reports are published using:
Output
Output
On the console, everything is showing as none for trivy and nodejsscan as below:
Did anyone tried publishing trivy and nodejsscan reports using CLI?