Skip to content

Commit aa09cfd

Browse files
authored
fix(sandbox): pin Debian security suite to avoid stale libssh2 (#298)
1 parent d584f55 commit aa09cfd

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

‎internal/sandbox/sandbox.Dockerfile‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
FROM node:22-bookworm-slim@sha256:4d676821dff059fd00d277ee4261ef34ea712317fed0737c03941481b5760c96
22

3-
RUN npm install --global npm@12.0.2 && \
3+
# Configure package sources explicitly rather than relying on the base image's
4+
# snapshot-pinned debian.sources, which can lag the security suite (libssh2-1
5+
# shipped 1.10.0-3+b1 until DSA-6365-1 published 1.10.0-3+deb12u1). Pinning
6+
# bookworm-security here keeps every build on current security fixes and never
7+
# serves a stale cached apt layer.
8+
RUN printf '%s\n' \
9+
'Types: deb' \
10+
'URIs: http://deb.debian.org/debian' \
11+
'Suites: bookworm bookworm-updates' \
12+
'Components: main' \
13+
'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' \
14+
'' \
15+
'Types: deb' \
16+
'URIs: http://deb.debian.org/debian-security' \
17+
'Suites: bookworm-security' \
18+
'Components: main' \
19+
'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' \
20+
> /etc/apt/sources.list.d/debian.sources && \
21+
npm install --global npm@12.0.2 && \
422
npm cache clean --force && \
523
rm -rf /root/.npm && \
624
apt-get update && \

0 commit comments

Comments
 (0)