Skip to content

Commit 17ed34e

Browse files
committed
[dev] Drop "--ignore-scripts" for yarn, as we rely on it in a number of places
1 parent b60ed6c commit 17ed34e

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -336,12 +336,6 @@ RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |
336336
&& nvm install v${NODE_VERSION} \
337337
&& nvm alias default v${NODE_VERSION}"
338338

339-
# Disable npm/yarn lifecycle scripts by default (security hardening)
340-
# To allow specific packages, use: npm rebuild <package> or yarn rebuild <package>
341-
RUN npm config set ignore-scripts true --location=global && \
342-
npm config set ignore-scripts true --location=user && \
343-
echo 'ignore-scripts true' >> ~/.yarnrc
344-
345339
# Disable npx (security hardening - prevents arbitrary package execution)
346340
# Remove npx from NVM and replace with stub that prints warning
347341
RUN rm -f /usr/bin/npx /usr/local/bin/npx && \

dev/image/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,6 @@ RUN bash -c ". .nvm/nvm.sh \
129129
&& nvm install $GITPOD_NODE_VERSION"
130130
ENV PATH=/home/gitpod/.nvm/versions/node/v${GITPOD_NODE_VERSION}/bin:$PATH
131131

132-
# Disable npm/yarn lifecycle scripts by default (security hardening)
133-
# To allow specific packages, use: npm rebuild <package> or yarn rebuild <package>
134-
RUN npm config set ignore-scripts true --location=global && \
135-
npm config set ignore-scripts true --location=user && \
136-
echo 'ignore-scripts true' >> ~/.yarnrc
137-
138132
# Disable npx (security hardening - prevents arbitrary package execution)
139133
RUN sudo rm -f /usr/bin/npx /usr/local/bin/npx /home/gitpod/.nvm/versions/node/v${GITPOD_NODE_VERSION}/bin/npx && \
140134
echo '#!/bin/sh' | sudo tee /usr/local/bin/npx > /dev/null && \

0 commit comments

Comments
 (0)