From ada765d2d957628f4e1dee101ee85628a67790c0 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Thu, 7 Nov 2024 13:37:16 +0000 Subject: [PATCH] test: fix trivy action fix --- .github/workflows/trivy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index eb8ff0738..aa2784120 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -27,6 +27,8 @@ jobs: - name: Run Trivy vulnerability scanner on csi-snapshotter image uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2" with: image-ref: 'test/csi-snapshotter:latest' format: 'table' @@ -37,6 +39,8 @@ jobs: - name: Run Trivy vulnerability scanner on snapshotter-controller image uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2" with: image-ref: 'test/snapshot-controller:latest' format: 'table' @@ -47,6 +51,8 @@ jobs: - name: Run Trivy vulnerability scanner on snapshot-validation-webhook image uses: aquasecurity/trivy-action@master + env: + TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2" with: image-ref: 'test/snapshot-validation-webhook:latest' format: 'table'