Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit ae53851

Browse files
committed
#17 Switched to ZAP Weekly Image to be able to use the -I CLI option
1 parent 9bc59b5 commit ae53851

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scanners/zap/templates/zap-scan-type.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ spec:
4646
restartPolicy: Never
4747
containers:
4848
- name: zap-api-scan
49-
image: owasp/zap2docker-stable:2.9.0
49+
image: owasp/zap2docker-weekly:w2020-06-24
5050
command:
5151
- "zap-api-scan.py"
52+
# Force Zap to always return a zero exit code. k8s would otherwise try to restart zap.
53+
- "-I"
5254
- "-J"
5355
# ZAP Baseline Script doesn't allow absolute paths...
5456
# Hacky workaround: specify a relative path to the `/zap/wrk` base dir.
@@ -76,9 +78,11 @@ spec:
7678
restartPolicy: Never
7779
containers:
7880
- name: zap-full-scan
79-
image: owasp/zap2docker-stable:2.9.0
81+
image: owasp/zap2docker-weekly:w2020-06-24
8082
command:
8183
- "zap-full-scan.py"
84+
# Force Zap to always return a zero exit code. k8s would otherwise try to restart zap.
85+
- "-I"
8286
- "-J"
8387
# ZAP Baseline Script doesn't allow absolute paths...
8488
# Hacky workaround: specify a relative path to the `/zap/wrk` base dir.

0 commit comments

Comments
 (0)