From 0fa0cdb177a063429d52b85bca1bb4deb7b5c171 Mon Sep 17 00:00:00 2001 From: DmitriyLewen <91113035+DmitriyLewen@users.noreply.github.com> Date: Thu, 10 Oct 2024 03:36:41 +0600 Subject: [PATCH] ci: use `setup-trivy` to install Trivy (#406) --- 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