Skip to content

Commit 7002ac8

Browse files
committed
test: fix trivy action
fix
1 parent 2bd59b6 commit 7002ac8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/trivy.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
2828
- name: Run Trivy vulnerability scanner on csi-snapshotter image
2929
uses: aquasecurity/trivy-action@master
30+
env:
31+
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"
3032
with:
3133
image-ref: 'test/csi-snapshotter:latest'
3234
format: 'table'
@@ -37,6 +39,8 @@ jobs:
3739

3840
- name: Run Trivy vulnerability scanner on snapshotter-controller image
3941
uses: aquasecurity/trivy-action@master
42+
env:
43+
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"
4044
with:
4145
image-ref: 'test/snapshot-controller:latest'
4246
format: 'table'
@@ -47,6 +51,8 @@ jobs:
4751

4852
- name: Run Trivy vulnerability scanner on snapshot-validation-webhook image
4953
uses: aquasecurity/trivy-action@master
54+
env:
55+
TRIVY_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-db:2"
5056
with:
5157
image-ref: 'test/snapshot-validation-webhook:latest'
5258
format: 'table'

0 commit comments

Comments
 (0)