Loading jobs/zaproxy/zaproxy.yml +15 −7 Original line number Diff line number Diff line Loading @@ -8,11 +8,19 @@ zaproxy: ZAP_SCANNERS: "" ZAP_CONTEXT: "" ZAP_TARGET: "http://app" ZAP_REPORT: "zap-report.xml" script: - zap.sh -cmd -quickurl ${ZAP_TARGET} -quickout ${CI_PROJECT_DIR}/${ZAP_REPORT} artifacts: paths: - $ZAP_REPORT expire_in: 30 days when: always No newline at end of file - echo "test" > ${CI_PROJECT_DIR}/test - if [ ! -z ${ZAP_CONTEXT} ]; then - zap-cli context import ${ZAP_CONTEXT} - if [ ! -z ${ZAP_SCANNERS}]; then - zap-cli quick-scan -sc -s ${ZAP_SCANNERS} --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -sc --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - else - if [ ! -z ${ZAP_SCANNERS}]; then - zap-cli quick-scan -sc -s $ {ZAP_SCANNERS} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -sc --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - fi No newline at end of file Loading
jobs/zaproxy/zaproxy.yml +15 −7 Original line number Diff line number Diff line Loading @@ -8,11 +8,19 @@ zaproxy: ZAP_SCANNERS: "" ZAP_CONTEXT: "" ZAP_TARGET: "http://app" ZAP_REPORT: "zap-report.xml" script: - zap.sh -cmd -quickurl ${ZAP_TARGET} -quickout ${CI_PROJECT_DIR}/${ZAP_REPORT} artifacts: paths: - $ZAP_REPORT expire_in: 30 days when: always No newline at end of file - echo "test" > ${CI_PROJECT_DIR}/test - if [ ! -z ${ZAP_CONTEXT} ]; then - zap-cli context import ${ZAP_CONTEXT} - if [ ! -z ${ZAP_SCANNERS}]; then - zap-cli quick-scan -sc -s ${ZAP_SCANNERS} --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -sc --context-name ${ZAP_CONTEXT} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - else - if [ ! -z ${ZAP_SCANNERS}]; then - zap-cli quick-scan -sc -s $ {ZAP_SCANNERS} --start-options '-config api.disablekey=true' ${ZAP_TARGET} - else - zap-cli quick-scan -sc --start-options '-config api.disablekey=true' ${ZAP_TARGET} - fi - fi No newline at end of file