Commit 5ab98a55 authored by FulcrandG's avatar FulcrandG
Browse files

Testing report for zaproxy job

parent 1a76e0ae
Loading
Loading
Loading
Loading
+7 −14
Original line number Diff line number Diff line
@@ -8,18 +8,11 @@ zaproxy:
    ZAP_SCANNERS: ""
    ZAP_CONTEXT: ""
    ZAP_TARGET: "http://app"
    ZAP_REPORT: "zap-report.xml"
  script:
    - 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
    - zap.sh -cmd -quickurl ${ZAP_TARGET} -quickout ${ZAP_REPORT}
  artifacts:
    paths:
      - $ZAP_REPORT
    expire_in: 30 days
    when: always
 No newline at end of file