From 5ab63cfe46d5390cb95485502c71baa8a0491fa2 Mon Sep 17 00:00:00 2001 From: Jesus Date: Sun, 13 Oct 2024 01:46:33 +0800 Subject: Add db-trivy from another DB --- .gitea/workflows/release.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.gitea/workflows/release.yaml') diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index d580c5b..aab9bc1 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -52,7 +52,7 @@ jobs: ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:v0.2.19 - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@master + uses: aquasecurity/trivy-action@0.27.0 with: image-ref: ${{ secrets.DOCKER_REGISTRY_USER}}/yt-local:latest format: 'table' @@ -60,6 +60,11 @@ jobs: ignore-unfixed: true vuln-type: 'os' severity: 'CRITICAL,HIGH' + env: + TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 + TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1 + TRIVY_SKIP_DB_UPDATE: false + TRIVY_SKIP_JAVA_DB_UPDATE: false - name: Push Docker image uses: docker/build-push-action@v6 -- cgit v1.2.3