Skip to content

Commit

Permalink
fixed the security scan (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkpatel81 authored Aug 25, 2021
1 parent aeea37b commit 39df519
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions security.sh
Original file line number Diff line number Diff line change
@@ -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/
cp api-report.html functional-output/

0 comments on commit 39df519

Please sign in to comment.