Skip to content

Commit

Permalink
SP-2158 - Update clamav package ref, ignore Lambda RIE Vuln #minor (#399
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sixdaysandy committed Jun 5, 2024
1 parent a904813 commit 6ede6fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Ignore AWS Go SDK Vulnerability as it's not fixed yet.
CVE-2020-8911
CVE-2020-8912
# Ignore AWS Lambda Runtime stdlib vuln.
CVE-2024-24789
CVE-2024-24790
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:

localstack:
image: localstack/localstack:3.4
depends_on: [s3-antivirus, s3-antivirus-update]
depends_on: [ s3-antivirus, s3-antivirus-update ]
volumes:
- "./scripts/localstack/init:/etc/localstack/init/ready.d"
- "./scripts/localstack/wait:/scripts/wait"
Expand All @@ -42,7 +42,7 @@ services:
environment:
AWS_DEFAULT_REGION: eu-west-1
healthcheck:
test: ["CMD-SHELL", "curl http://localhost:4566 || exit 1"]
test: [ "CMD-SHELL", "curl http://localhost:4566 || exit 1" ]
interval: 15s
timeout: 10s
retries: 3
Expand Down Expand Up @@ -79,3 +79,4 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
- ./.trivy-cache:/root/.cache
- ./test-results:/test-results
- ./.trivyignore:/.trivyignore
4 changes: 2 additions & 2 deletions docker/opg-s3-antivirus/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.22.3 AS build-env
FROM golang:1.22-alpine AS build-env

WORKDIR /app

Expand All @@ -15,7 +15,7 @@ FROM public.ecr.aws/lambda/provided:al2

ENV PATH="${PATH}:/usr/sbin"

RUN yum update -y && yum install -y clamav-0.103.9-1.amzn2.0.2 clamd-0.103.9-1.amzn2.0.2 && yum clean all
RUN yum update -y && yum install -y clamav-0.103.11-1.amzn2.0.1 clamd-0.103.11-1.amzn2.0.1 && yum clean all

RUN yum update -y && \
yum upgrade -y \
Expand Down

0 comments on commit 6ede6fd

Please sign in to comment.