Change value of FAIL to FAILED for jsonAsff output type (incompatible with AWS Security Hub)

This commit is contained in:
Stephen Connor
2020-05-07 14:47:09 +01:00
parent 7ab9962e08
commit 2a54a180da

View File

@@ -222,6 +222,11 @@ generateJsonAsffOutput(){
# Replace any successive non-conforming characters with a single underscore
local message=$1
local status=$2
if [[ "$status" == "FAIL" ]]; then
status="FAILED"
fi
local severity=$3
jq -M -c \
--arg ACCOUNT_NUM "$ACCOUNT_NUM" \