From f1f348b36cf75d89c2ff056cff81cc42ea17903b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Tue, 3 Oct 2023 15:25:21 +0200 Subject: [PATCH] fix: trivy rootless --- trivy/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trivy/action.yml b/trivy/action.yml index 103a4e4a..262b6f72 100644 --- a/trivy/action.yml +++ b/trivy/action.yml @@ -15,7 +15,7 @@ runs: - name: Scan images shell: bash run: | - sudo apt-get install -y jq + if ! [ -x "$(command -v jq)" ]; then sudo apt-get install -y jq; fi IFS=',' ; mkdir trivy-results || true for image in `echo "${{ inputs.images }}"`; do