mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 11:05:41 +00:00
fix: ci security issues (#9451)
* fix possible code injection errors * pin n
This commit is contained in:
@ -108,7 +108,7 @@ RUN ./install_build_packages.sh --no-cache --virtual .build-deps && \
|
||||
FROM prebuild AS frontend
|
||||
|
||||
RUN apk add --no-cache --update nodejs npm yarn bash
|
||||
RUN npm install -g --ignore-scripts n
|
||||
RUN npm install -g --ignore-scripts n@10.1.0
|
||||
RUN bash -c "n lts"
|
||||
RUN yarn config set network-timeout 600000 -g
|
||||
COPY src ${INVENTREE_HOME}/src
|
||||
@ -152,7 +152,7 @@ RUN pip install --require-hashes -r base_requirements.txt --no-cache
|
||||
# Install nodejs / npm / yarn
|
||||
|
||||
RUN apk add --no-cache --update nodejs npm yarn bash
|
||||
RUN npm install -g --ignore-scripts n
|
||||
RUN npm install -g --ignore-scripts n@10.1.0
|
||||
RUN bash -c "n lts"
|
||||
RUN yarn config set network-timeout 600000 -g
|
||||
|
||||
|
Reference in New Issue
Block a user