ci: fix Trivy command after update

This commit is contained in:
cn 2022-02-17 10:06:51 +01:00
parent dbc61d72fb
commit 3f784ccaa1
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ namespace :docker do
task :scan do
ver = trivy_version.gsub('v', '')
sh "if [ ! -e ./trivy ]; then wget -q -O - https://github.com/aquasecurity/trivy/releases/download/v#{ver}/trivy_#{ver}_Linux-64bit.tar.gz | tar -xzf - trivy; fi"
sh "./trivy #{ci_image}"
sh "./trivy image #{ci_image}"
end
desc 'End-to-end test the CI Docker image'