Loading jobs/zaproxy/zaproxy.yml +4 −0 Original line number Diff line number Diff line Loading @@ -17,18 +17,21 @@ zaproxy: - zap-cli -p ${ZAP_PORT} quick-scan -s ${ZAP_SCANNERS} --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -s ${ZAP_SCANNERS} --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - else - if [ ! -z ${ZAP_PORT} ]; then - zap-cli -p ${ZAP_PORT} quick-scan --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - fi - else - if [ ! -z ${ZAP_SCANNERS}]; then - if [ ! -z ${ZAP_PORT} ]; then - zap-cli -p ${ZAP_PORT} quick-scan -s $ {ZAP_SCANNERS} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -s $ {ZAP_SCANNERS} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - else - if [ ! -z ${ZAP_PORT} ]; then - zap-cli -p ${ZAP_PORT} quick-scan --start-options '-config api.disablekey=true' ${ZAP_TARGET} Loading @@ -36,3 +39,4 @@ zaproxy: - zap-cli quick-scan --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - fi - fi No newline at end of file Loading
jobs/zaproxy/zaproxy.yml +4 −0 Original line number Diff line number Diff line Loading @@ -17,18 +17,21 @@ zaproxy: - zap-cli -p ${ZAP_PORT} quick-scan -s ${ZAP_SCANNERS} --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -s ${ZAP_SCANNERS} --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - else - if [ ! -z ${ZAP_PORT} ]; then - zap-cli -p ${ZAP_PORT} quick-scan --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - fi - else - if [ ! -z ${ZAP_SCANNERS}]; then - if [ ! -z ${ZAP_PORT} ]; then - zap-cli -p ${ZAP_PORT} quick-scan -s $ {ZAP_SCANNERS} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -s $ {ZAP_SCANNERS} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - else - if [ ! -z ${ZAP_PORT} ]; then - zap-cli -p ${ZAP_PORT} quick-scan --start-options '-config api.disablekey=true' ${ZAP_TARGET} Loading @@ -36,3 +39,4 @@ zaproxy: - zap-cli quick-scan --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - fi - fi No newline at end of file