From c8e3aab4c8e8cf38b23e4c50700a5b4ca5facff8 Mon Sep 17 00:00:00 2001 From: lou-lan Date: Wed, 13 Nov 2024 16:38:56 +0800 Subject: [PATCH] Fix `TOOMANYREQUESTS` failure in Trivy Action Signed-off-by: lou-lan --- .github/workflows/call-trivy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/call-trivy.yaml b/.github/workflows/call-trivy.yaml index acf07787..d6395cc6 100644 --- a/.github/workflows/call-trivy.yaml +++ b/.github/workflows/call-trivy.yaml @@ -45,18 +45,24 @@ jobs: # https://github.com/aquasecurity/trivy-action/issues/313 - name: Scan agent uses: aquasecurity/trivy-action@0.28.0 + env: + TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,ghcr.io/aquasecurity/trivy-db with: input: output/image/egressgateway-agent.tar severity: 'CRITICAL,HIGH' - name: Scan controller uses: aquasecurity/trivy-action@0.28.0 + env: + TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,ghcr.io/aquasecurity/trivy-db with: input: output/image/egressgateway-controller.tar severity: 'CRITICAL,HIGH' - name: Scan nettools uses: aquasecurity/trivy-action@0.28.0 + env: + TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db,ghcr.io/aquasecurity/trivy-db with: input: output/image/egressgateway-nettools.tar severity: 'CRITICAL,HIGH' \ No newline at end of file