fortify / FortifyVulnerabilityExporter

Export Fortify vulnerability data to GitHub, GitLab, SonarQube and more
Other
24 stars 8 forks source link

JSON Raw format export issue of Java 8 date/time type #64

Open rajesh-kumar77 opened 1 year ago

rajesh-kumar77 commented 1 year ago

Hi,

Good day !

I'm using FortifyVulnerabilityExporter on sample WebGoat application's scan and trying to export FOD scan results using customized yml file with export_config: ${{github.workspace}}/MyCustomExportConfig_JSON.yml

While exporting I received following error -

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.ZoneRegion not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: com.fortify.util.rest.json.JSONMap["release"]->com.fortify.util.rest.json.JSONMap["serverZoneId"])

I have attached my yml file. Any help in this regards is greatly appreciated.

Best Regards, Rajesh Kumar

See FortifyVulnerabilityExporter documentation for FoD connection settings and release selection

export: from: fod to: json.raw

fod: release: embed: # Load static scan summaries if available