Unable to generate markdown report in docker-stable container

27 views
Skip to first unread message

Paolo Sotgiu

unread,
Mar 15, 2023, 11:37:09 AM3/15/23
to OWASP ZAP User Group
I have automated a small C/I procedure using the automation framework.
I would like to generate the report in markdown so i switched the report job to use the markdown template as below, but i get an error on execution:

Job report set reportDescription =
Job report set reportDir = /zap/wrk/
Job report set reportFile = testreport.md
Job report set reportTitle = ZAP Scanning Report
Job report set template = traditional-markdown
Job report invalid template: traditional-markdown
Automation plan failures:
        Job report invalid template: traditional-markdown

with html it works fine.

I also tried to install the generate report add-on, which looks to be there:

Add-on update check complete
Add-on already installed: /home/zap/.ZAP/plugin/spiderAjax-release-23.12.0.zap
Add-on already installed: /home/zap/.ZAP/plugin/reports-release-0.19.0.zap
Add-on downloaded to: /home/zap/.ZAP/plugin/encoder-release-1.1.0.zap
Add-on downloaded to: /home/zap/.ZAP/plugin/exim-beta-0.4.0.zap

jobs:
- parameters:
    enableTags: false
    maxAlertsPerRule: 10
  type: passiveScan-config
- parameters:
    maxDuration: 0
  type: spider
- parameters:
    maxDuration: 0
  type: passiveScan-wait
- parameters:
    format: Long
    summaryFile: /home/zap/zap_out.json
  rules: []
  type: outputSummary             
- parameters:
    reportDescription: ''
    reportDir: /zap/wrk/
    reportFile: testreport.md
    reportTitle: ZAP Scanning Report
    template: traditional-markdown
  type: report

thc...@gmail.com

unread,
Mar 15, 2023, 11:54:09 AM3/15/23
to zaprox...@googlegroups.com
Hi.

There's a typo in the help, it should be:
traditional-md

Best regards.
Reply all
Reply to author
Forward
0 new messages