Skip to content

Jenkins Pipeline for security scanning with owasp zap

License

Notifications You must be signed in to change notification settings

k11h-de/zap-jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.