Please I am trying to send a Terraform coverage report to Codacy. I have run checkov and I am even able to save the generated report as an artifact, both in .json and .xml format. However, any attempt to send the same file to Codacy generates the error “The provided coverage report generated an empty result”
Below is a sample of the error I get. Hope you can assist.
2021-08-02 19:23:19.385Z info [ConfigurationRules] API base URL: https://api.codacy.com - (ConfigurationRules.scala:77)
2021-08-02 19:23:19.385Z info [CommitUUIDProvider] CI/CD provider Circle CI found Commit UUID fbb944dde7d86178f871c7031997c2aaf29ff424 - (CommitUUIDProvider.scala:131)
2021-08-02 19:23:19.385Z info [ReportRules] Parsing coverage data from: /tmp/project/report.json … - (ReportRules.scala:43)
2021-08-02 19:23:19.389Z info [ReportRules] Coverage parser used is com.codacy.parsers.implementation.LCOVParser$@5590e542 - (ReportRules.scala:48)
2021-08-02 19:23:19.389Z error [CodacyCoverageReporter] The provided coverage report /tmp/project/report.json generated an empty result. - (CodacyCoverageReporter.scala:25)