From a676cf2d3d6d81d07697a6ca99786b7ef26cad70 Mon Sep 17 00:00:00 2001 From: yiannistri <8741709+yiannistri@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:55:41 +0000 Subject: [PATCH] ci: Fix trivy action timeout (cherry picked from commit f00d6665e1a1bf729ba48110de821a27448c07f4) --- .github/workflows/scan.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scan.yaml b/.github/workflows/scan.yaml index 5f1ef077..bfc56b18 100644 --- a/.github/workflows/scan.yaml +++ b/.github/workflows/scan.yaml @@ -1,5 +1,6 @@ name: Scan on: + workflow_dispatch: pull_request: branches: - release-v2.9 @@ -39,7 +40,10 @@ jobs: REPO=ghcr.io/rancher/aks-operator COMMIT=${{ github.sha }} - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.28.0 + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: image-ref: "ghcr.io/rancher/aks-operator:${{ github.sha }}" format: "table"