File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,7 @@ jobs:
109109 trivy image \
110110 --input "build/${IMAGE_NAME}.tar" \
111111 --severity HIGH,CRITICAL \
112- --exit-code 1 \
113- "${IMAGE_NAME}:${IMAGE_VERSION}"
112+ --exit-code 1
114113
115114 - name : Login to GHCR
116115 env :
Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ set -eo pipefail
99DIVE_VERSION=$( curl -sL " https://api.github.com/repos/wagoodman/dive/releases/latest" | grep ' "tag_name":' | sed -E ' s/.*"v([^"]+)".*/\1/' )
1010log_info " Installing dive v${DIVE_VERSION} "
1111curl -OL https://github.com/wagoodman/dive/releases/download/v${DIVE_VERSION} /dive_${DIVE_VERSION} _linux_amd64.deb
12- sudo apt install ./dive_${DIVE_VERSION} _linux_amd64.deb
12+ sudo apt install -y ./dive_${DIVE_VERSION} _linux_amd64.deb
1313rm dive_${DIVE_VERSION} _linux_amd64.deb
1414
1515# Install trivy
16- sudo apt-get install wget gnupg
16+ sudo apt-get install -y wget gnupg
1717wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | gpg --dearmor | sudo tee /usr/share/keyrings/trivy.gpg > /dev/null
1818TRIVY_REPO_LINE=" deb [signed-by=/usr/share/keyrings/trivy.gpg] https://aquasecurity.github.io/trivy-repo/deb generic main"
1919TRIVY_LIST_FILE=" /etc/apt/sources.list.d/trivy.list"
You can’t perform that action at this time.
0 commit comments