From f00d6665e1a1bf729ba48110de821a27448c07f4 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 --- .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 4514bec3..f84a5f95 100644 --- a/.github/workflows/scan.yaml +++ b/.github/workflows/scan.yaml @@ -1,5 +1,6 @@ name: Scan on: + workflow_dispatch: pull_request: branches: - main @@ -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"