From f33da6441181adfb9aff7eaa8785a22d66376fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstro=CC=88m?= Date: Sun, 11 Apr 2021 11:45:10 -0400 Subject: [PATCH] doc: link to array issue in code Hopefully makes it easier for people eager to understand better what we're trying to achieve. --- lib/jq.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/jq.sh b/lib/jq.sh index 8d10ef9..05faba2 100644 --- a/lib/jq.sh +++ b/lib/jq.sh @@ -13,6 +13,7 @@ function exit_if_found_in_json() { # A bit finicky - we lean on jq to pass an error code. If this happens, # bash will simply exit since we use `set -o pipefail` # @TODO: support passing needle as array to avoid calling twice via "warning, error" + # https://github.com/jbergstroem/hadolint-gh-action/issues/3 jq -e --arg needle "${1}" \ -r 'def count(s): reduce s as $_ (0;.+1); count(.[] | select(.level == $needle)) | . == 0' &> /dev/null