From 2a54a180da4ef9b1d97f513119d90993acd63760 Mon Sep 17 00:00:00 2001 From: Stephen Connor Date: Thu, 7 May 2020 14:47:09 +0100 Subject: [PATCH] Change value of FAIL to FAILED for jsonAsff output type (incompatible with AWS Security Hub) --- include/outputs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/outputs b/include/outputs index 37f230e5..dee9344b 100644 --- a/include/outputs +++ b/include/outputs @@ -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" \