diff --git a/.github/workflows/release-container.yaml b/.github/workflows/release-container.yaml index e479d3b..09cbd26 100644 --- a/.github/workflows/release-container.yaml +++ b/.github/workflows/release-container.yaml @@ -125,6 +125,9 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@0.28.0 + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: image-ref: '${{ inputs.image }}:${{ steps.meta.outputs.version }}' format: 'json' diff --git a/.github/workflows/schedule-trivy.yaml b/.github/workflows/schedule-trivy.yaml index 52dab19..667347b 100644 --- a/.github/workflows/schedule-trivy.yaml +++ b/.github/workflows/schedule-trivy.yaml @@ -36,6 +36,9 @@ jobs: - name: Run Trivy vulnerability scanner uses: aquasecurity/trivy-action@0.28.0 + env: + TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db + TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db with: image-ref: ${{ inputs.image-ref }} timeout: ${{ inputs.timeout }}