Skip to content

Commit

Permalink
Merge pull request #338 from hmcts/RDCC-3077_fixed_nightly_job
Browse files Browse the repository at this point in the history
fixed the security scan
  • Loading branch information
bkpatel81 authored Jul 1, 2021
2 parents 649201b + 7975b03 commit 47e9d83
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions security.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#!/usr/bin/env bash
echo ${TEST_URL}
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
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
mkdir -p functional-output
chmod a+wx functional-output
curl --fail http://0.0.0.0:1001/OTHER/core/other/jsonreport/?formMethod=GET --output report.json
cp /zap/api-report.html functional-output/
zap-cli --zap-url http://0.0.0.0 -p 1001 alerts -l Informational --exit-code False

0 comments on commit 47e9d83

Please sign in to comment.