Example DAST Output
Below is an example output from a DAST run that logged one warning:For demonstration purposes, this guide explains how to bypass errors. In production, always address the underlying vulnerabilities.
Ignoring Warnings During the Scan
To ignore specific warnings during a scan, create a configuration file that uses the “ignore” tag for designated warnings. The following command runs the scan while ignoring errors:Remember: Always consult the OWASP ZAP documentation to decide which findings can be safely ignored.
Creating the ZAP Ignore Configuration File
You must create a configuration file to specify the warnings you wish to ignore. When executing the Docker command, pass the configuration file using the-c option. You can generate a default configuration file using the -g option. Below is an excerpt from a sample configuration file:
- Rule ID
- Action (
IGNORE,WARN, orFAIL) - Additional informational text (optional)
zap_ignore_rules) and reference it in your Jenkins pipeline.
Integrating with Jenkins Pipeline
Below is an example snippet from a Jenkinsfile which shows different pipeline stages. Notice the use of the configuration file in the “DAST - OWASP ZAP” stage:Front-End Visual Elements
In your front-end application, you can add visual cues to indicate status updates. For instance, the index page includes a button with rocket icons representing the application’s status:Pipeline Execution and Final Verification
Once the pipeline is triggered, it pauses at the “App Deployed?” stage for manual confirmation. After merging the pull request and synchronizing ArgoCD, the pipeline resumes and deploys the updated application. You should see console messages similar to the following:If you encounter an error like:Failed to load config file /zap/wrk/zap_ignore_rules Unexpected number of tokens on line - there should be at least 3, tab separated: 100001 IGNOREit indicates that your ignore file does not follow the proper format. Edit the file with a reliable text editor (e.g., vi) to ensure each line has at least three tab-separated tokens.
Final Docker Command (Demo)
Below is a reminder of the Docker command used for the demo:


