Skip to content

Commit 8e1ff48

Browse files
authored
Use apk upgrade on harness images (kagent-dev#2756)
# Context Resolves CVEs with `apk upgrade` on harness images. | harness | total | C | H | M | L | | -------- | ---- | - | - | - | - | | claude (before) | 21 | 0 | 2 | 6 | 12 | | claude (after) | 1 | 0 | 0 | 0 | 0 | | codex (before) | 21 | 0 | 2 | 6 | 12 | | codex (after) | 1 | 0 | 0 | 0 | 0 | # Additional Notes This was originally a `wolfi` migration PR, **but** those migrations were reverted [here](kagent-dev@88dabc0) because `wolfi` would not work cleanly with substrate (at least on arm64 environments, due to known gVisor issues gvisor/gvisor#13542). --------- Signed-off-by: Fabian Gonzalez <[email protected]>
1 parent 32bf873 commit 8e1ff48

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎go/harness/claude/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ARG TARGETARCH
2727
ARG VERSION
2828

2929
ENV USE_BUILTIN_RIPGREP=0
30-
RUN apk add --no-cache bash ca-certificates git libgcc libstdc++ ripgrep \
30+
RUN apk upgrade --no-cache && apk add --no-cache bash ca-certificates git libgcc libstdc++ ripgrep \
3131
&& case "${TARGETARCH}" in \
3232
amd64) platform="linux-x64-musl"; checksum="${CLAUDE_CODE_AMD64_SHA256}" ;; \
3333
arm64) platform="linux-arm64-musl"; checksum="${CLAUDE_CODE_ARM64_SHA256}" ;; \

‎go/harness/codex/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ARG CODEX_CLI_ARM64_SHA256=580db3c7411f5852b550876f185c30b61b674e01b948fd5030f2c
2626
ARG TARGETARCH
2727
ARG VERSION
2828

29-
RUN apk add --no-cache bash ca-certificates git libgcc libstdc++ \
29+
RUN apk upgrade --no-cache && apk add --no-cache bash ca-certificates git libgcc libstdc++ \
3030
&& case "${TARGETARCH}" in \
3131
amd64) platform="x86_64-unknown-linux-musl"; checksum="${CODEX_CLI_AMD64_SHA256}" ;; \
3232
arm64) platform="aarch64-unknown-linux-musl"; checksum="${CODEX_CLI_ARM64_SHA256}" ;; \

0 commit comments

Comments
 (0)