mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
fix: resolve high-severity dependency and code scanning alerts
Upgrade SQLite to 1.1.5 so tar resolves safely without an override. Update vulnerable dependencies while retaining scoped compatibility overrides and the CommonJS decoder patch required by Umi's query-string consumers. Limit sensitive endpoints, constrain script file operations to checked paths, and serialize Python environment values safely. Add compatibility regressions and include the decoder patch in Docker and npm installation inputs.
This commit is contained in:
1 parent
0902bc074d
commit
b6bdba9a8d
13 files changed
+1064
-746
No files matched your search
@@ -8,6 +8,7 @@ ENV NPM_CONFIG_PREFIX=/opt/node-global
|
||||
ENV PATH=/opt/node-global/bin:${PATH}
|
||||
|
||||
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
||||
COPY patches/ /tmp/build/patches/
|
||||
RUN set -x \
|
||||
&& apk add --no-cache git \
|
||||
&& npm i -g pnpm@8.3.1 pm2 ts-node typescript@5 \
|
||||
|
||||
@@ -8,6 +8,7 @@ ENV NPM_CONFIG_PREFIX=/opt/node-global
|
||||
ENV PATH=/opt/node-global/bin:${PATH}
|
||||
|
||||
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
||||
COPY patches/ /tmp/build/patches/
|
||||
RUN set -x \
|
||||
&& apk add --no-cache git \
|
||||
&& npm i -g pnpm@8.3.1 pm2 ts-node typescript@5 \
|
||||
|
||||
@@ -8,6 +8,7 @@ RUN apt-get update && \
|
||||
|
||||
FROM python:3.11.14-slim-bookworm AS builder
|
||||
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
||||
COPY patches/ /tmp/build/patches/
|
||||
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
||||
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
||||
RUN set -x && \
|
||||
|
||||
@@ -10,6 +10,7 @@ RUN apt-get update && \
|
||||
# The floating 3.10-slim-bookworm tag no longer includes s390x.
|
||||
FROM python:3.10.19-slim-bookworm@sha256:23f63358922e79a794f71be8f3723c84e5ccca9638af3f74456dc73d6184499e AS builder
|
||||
COPY package.json .npmrc pnpm-lock.yaml /tmp/build/
|
||||
COPY patches/ /tmp/build/patches/
|
||||
COPY --from=nodebuilder /usr/local/bin/node /usr/local/bin/
|
||||
COPY --from=nodebuilder /usr/local/lib/node_modules/. /usr/local/lib/node_modules/
|
||||
RUN set -x && \
|
||||
|
||||
Reference in new issue
Block a user