Skip to content

Commit

Permalink
Merge pull request #567 from hmcts/_nightly_fix_
Browse files Browse the repository at this point in the history
Nightly Fix: Updating security.sh
  • Loading branch information
AdilHMCTS authored Sep 27, 2022
2 parents c3351a4 + b11e223 commit 4e5aed6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion security.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
echo ${TEST_URL}
echo "ZAP has successfully started"
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
cat zap.out
curl --fail http://0.0.0.0:1001/OTHER/core/other/jsonreport/?formMethod=GET --output report.json
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 Medium --exit-code False
mkdir -p functional-output
chmod a+wx functional-output
cp api-report.html functional-output/
cp /zap/api-report.html functional-output/

0 comments on commit 4e5aed6

Please sign in to comment.