From 6cadd7feacae4ad87b0bf16eb081fc6a9a0ffd69 Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Sat, 2 Nov 2024 06:58:07 +0200 Subject: [PATCH] chore: use our own trivy repository (#447) --- 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 21274761..d27194d5 100755 --- a/tests/scripts/pull_update_push_image.sh +++ b/tests/scripts/pull_update_push_image.sh @@ -222,7 +222,7 @@ fi trivy_out_file=trivy-${image}-${tag}.json if [ ! -z "${multiarch}" ]; then - trivy image --scanners vuln --format json --input ${local_image_ref_trivy} -o ${trivy_out_file} + 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 mv ${trivy_out_file}.tmp ${trivy_out_file} else