From c0a64a3f6600241486d87e46abb366ff34fe9f86 Mon Sep 17 00:00:00 2001 From: Daryl <92750608+dhansen-gw@users.noreply.github.com> Date: Wed, 10 Nov 2021 04:22:34 -0800 Subject: [PATCH] add alternative operator for null results (#27) --- to-rdjson.jq | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to-rdjson.jq b/to-rdjson.jq index df18334..3b5b630 100644 --- a/to-rdjson.jq +++ b/to-rdjson.jq @@ -5,7 +5,7 @@ name: "tfsec", url: "https://github.com/aquasecurity/tfsec" }, - diagnostics: .results | map({ + diagnostics: (.results // {}) | map({ message: .description, code: { value: .rule_id,