From 5918aebbf38cfdfd11e794db7e46e69872e83bd9 Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Wed, 25 Dec 2024 09:20:45 +0200 Subject: [PATCH] fix: jq argument argfile was deprecated and removed (#467) Signed-off-by: Andrei Aaron --- tests/scripts/pull_update_push_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/scripts/pull_update_push_image.sh b/tests/scripts/pull_update_push_image.sh index d27194d5..45a32917 100755 --- a/tests/scripts/pull_update_push_image.sh +++ b/tests/scripts/pull_update_push_image.sh @@ -223,7 +223,7 @@ fi trivy_out_file=trivy-${image}-${tag}.json if [ ! -z "${multiarch}" ]; then trivy image --scanners vuln --db-repository ghcr.io/project-zot/trivy-db --format json --input ${local_image_ref_trivy} -o ${trivy_out_file} - jq -n --argfile trivy_file ${trivy_out_file} '.trivy=$trivy_file.Results' > ${trivy_out_file}.tmp + jq -n --slurpfile trivy_file ${trivy_out_file} '.trivy=$trivy_file[0].Results' > ${trivy_out_file}.tmp mv ${trivy_out_file}.tmp ${trivy_out_file} else echo '{"trivy":[]}' > ${trivy_out_file}