From 39df519cb3d2c76109ad8a9b5f9e1f46b12b91f4 Mon Sep 17 00:00:00 2001 From: bkpatel81 <66790434+bkpatel81@users.noreply.github.com> Date: Wed, 25 Aug 2021 10:18:37 +0100 Subject: [PATCH] fixed the security scan (#164) --- security.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/security.sh b/security.sh index cc01f15a1..410f31b80 100644 --- a/security.sh +++ b/security.sh @@ -1,13 +1,7 @@ #!/usr/bin/env bash echo ${TEST_URL} -zap-api-scan.py -t ${TEST_URL}/v2/api-docs -f openapi -S -d -u ${SecurityRules} -P 1001 -l FAIL -curl --fail http://0.0.0.0:1001/OTHER/core/other/jsonreport/?formMethod=GET --output report.json -cat zap.out echo "ZAP has successfully started" -export LC_ALL=C.UTF-8 -export LANG=C.UTF-8 -zap-cli --zap-url http://0.0.0.0 -p 1001 report -o /zap/api-report.html -f html -zap-cli --zap-url http://0.0.0.0 -p 1001 alerts -l Informational --exit-code False +zap-api-scan.py -t ${TEST_URL}/v2/api-docs -f openapi -S -d -u ${SecurityRules} -P 1001 -l FAIL -J report.json -r api-report.html mkdir -p functional-output chmod a+wx functional-output -cp /zap/api-report.html functional-output/ \ No newline at end of file +cp api-report.html functional-output/ \ No newline at end of file