diff --git a/.github/workflows/trivy.yaml b/.github/workflows/trivy.yaml index 8da15d8..b44e624 100644 --- a/.github/workflows/trivy.yaml +++ b/.github/workflows/trivy.yaml @@ -23,7 +23,7 @@ on: required: false REGISTRY_PASSWORD: required: false - + jobs: trivy: env: @@ -36,7 +36,12 @@ jobs: uses: actions/checkout@v4 - name: Image Scan - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.28.0 + # Due to rate limiting faced by aquasecurity/trivy-action#389 we download the DBs + # from the public ECR repository + env: + TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db with: image-ref: "${{ inputs.registry }}/${{ inputs.namespace }}/${{ inputs.name }}:${{ inputs.tag }}" format: 'sarif'