From 8a7a738b94dd65fb0831b2140a07a9aa1343745c 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 8afcb4793..94c3754a2 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'