fix image_scan.sh script and download trivy version (#7950)

Signed-off-by: Ian Cardoso <osodracnai@gmail.com>
This commit is contained in:
Ian Cardoso
2023-07-13 15:03:50 -03:00
committed by GitHub
parent 3eb4e12c3b
commit 58a8deb25d
2 changed files with 19 additions and 13 deletions

View File

@@ -9,8 +9,8 @@ fi
ARCH=$2
# skipping image scan for s390x since trivy doesn't support s390x arch yet
if [ "${ARCH}" == "s390x" ]; then
# skipping image scan for 32 bits image since trivy dropped support for those https://github.com/aquasecurity/trivy/discussions/4789
if [[ "${ARCH}" = "arm" ]] || [ "${ARCH}" != "386" ]; then
exit 0
fi