Hi,
I am using ZAP with the Automation Framework and notice that my container exits with error code 2 due to a warning even though failOnWarning is set to false.
I want this warning to not cause an issue right now.
Kubernetes Pod Info
Container Log
Job spiderAjax found 26 URLs
Job spiderAjax finished, time taken: 00:00:49
Job passiveScan-wait started
Job passiveScan-wait finished, time taken: 00:00:00
Job report started
Job report generated report /home/REDACTED/zap-results.xml
Job report finished, time taken: 00:00:01
Automation plan warnings:
Job spider error accessing URL https://REDACTED/ status code returned : 403 expected 200
Configuration YAML
1-automation.yaml: |
env:
contexts:
- name: scan-config
urls: [
"
https://REDACTED/"
]
excludePaths: [
"(.*[A-Z]{2}[A-Z0-9]{9}[0-9]{1}.*)$"
]
parameters:
failOnError: true
failOnWarning: false progressToStdout: true
jobs:
- type: passiveScan-config
parameters:
maxAlertsPerRule: 10
scanOnlyInScope: true
- type: spider
parameters:
context: scan-config
maxDuration: 2
- type: spiderAjax
parameters:
context: scan-config
maxDuration: 2
- type: passiveScan-wait
parameters:
maxDuration: 10
- type: report
parameters:
template: traditional-xml
reportDir: /home/securecodebox/
reportFile: zap-results
risks:
- high
- medium
- low
Cheers,
Max