From c4f287b428b429441a367965327f9828dfd564c0 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Wed, 9 Oct 2024 16:06:14 +0600 Subject: [PATCH] ci: use `setup-trivy` to install Trivy --- action.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index bbc90f8..93aa2c9 100644 --- a/action.yaml +++ b/action.yaml @@ -108,8 +108,10 @@ runs: using: 'composite' steps: - name: Install Trivy - shell: bash - run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sudo sh -s -- -b /usr/local/bin ${{ inputs.version }} + uses: aquasecurity/setup-trivy@v0.1.0 + with: + version: ${{ inputs.version }} + cache: ${{ inputs.cache }} - name: Get current date id: date