/zap-jenkins

Jenkins Pipeline for security scanning with owasp zap

Primary LanguageShellGNU General Public License v3.0GPL-3.0

zap-jenkins

Jenkins Pipeline for security scanning with owasp zap periodically inside Docker

features:

  • supports concurrent runs
  • supports scanning using authentication (stored inside context files)
  • support for exclude regex
  • publishes scan results in json, xml and html
  • support for cron triggers
  • portable because inside Docker

requirements

adding a new target

to add a new target you need to

  • add it to Jenkinsfile variable targets
  • optional: add a context file to folder zap-context see docs
  • optional: if you want to run periodically; add a line to Jenkinsfile -> pipeline -> triggers -> parameterizedCron

excluding paths from scanning

due to a know bug, the zap-cli does not respect the <excregexes> section of zap context files so there is a slightly modified implementation to work around this.

You simply need to place a file called <target>.context.exclude in contexts with one exclude regex per line Please refer to the examples.