Skip to content

Commit

Permalink
add env variables for trivy backup dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
ganga1980 committed Nov 12, 2024
1 parent 2e090b8 commit 1d95a6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kubernetes/linux/Dockerfile.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ RUN ln -s /lib/libnssckbi.so /lib/p11-kit-trust.so
# Do vulnerability scan in a seperate stage to avoid adding layer
FROM distroless_image AS vulnscan
COPY .trivyignore .trivyignore
ENV TRIVY_DB_REPOSITORY="ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db"
ENV TRIVY_JAVA_DB_REPOSITORY="ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db"
RUN ["/bin/bash", "-c", "curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.39.0"]
RUN ["/bin/bash", "-c", "trivy rootfs --ignore-unfixed --no-progress --severity HIGH,CRITICAL,MEDIUM --skip-files \"/usr/local/bin/trivy\" /"]
RUN ["/bin/bash", "-c", "trivy rootfs --ignore-unfixed --no-progress --severity HIGH,CRITICAL,MEDIUM /usr/lib"]
Expand Down

0 comments on commit 1d95a6f

Please sign in to comment.