Skip to content

Commit

Permalink
chore: use our own trivy repository
Browse files Browse the repository at this point in the history
Avoid errors caused by downloads hitting http code 429, toomanyrequests,
when downloading from official upstream repository

Signed-off-by: Andrei Aaron <[email protected]>
  • Loading branch information
andaaron committed Nov 1, 2024
1 parent 7bd1d7d commit 1b58e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/scripts/pull_update_push_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b58e79

Please sign in to comment.