Skip to content

Commit 8fe30fd

Browse files
Cornelius Ludmannona-agent
andcommitted
update
Co-authored-by: Ona <no-reply@ona.com>
1 parent a1f2efa commit 8fe30fd

File tree

10 files changed

+2147
-37
lines changed

10 files changed

+2147
-37
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,12 @@ RUN curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh |
338338

339339
# Disable npm/yarn lifecycle scripts by default (security hardening)
340340
# To allow specific packages, use: npm rebuild <package> or yarn rebuild <package>
341-
RUN npm config set ignore-scripts true --location=user && \
341+
RUN npm config set ignore-scripts true --location=global && \
342+
npm config set ignore-scripts true --location=user && \
342343
echo 'ignore-scripts true' >> ~/.yarnrc
343344

344345
# Disable npx (security hardening - prevents arbitrary package execution)
345-
RUN rm -f /usr/bin/npx /usr/local/bin/npx && \
346+
RUN rm -f /usr/bin/npx /usr/local/bin/npx /root/.nvm/versions/node/v${NODE_VERSION}/bin/npx && \
346347
echo '#!/bin/sh' > /usr/local/bin/npx && \
347348
echo 'echo "npx is disabled for security reasons. Use explicit package installation instead." >&2' >> /usr/local/bin/npx && \
348349
echo 'exit 1' >> /usr/local/bin/npx && \

.github/workflows/code-build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
run: |
1616
curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v0.2.1/oci-tool_0.2.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
1717
chmod +x /usr/local/bin/oci-tool
18-
cd ./components/ide/gha-update-image/
18+
cd ./dev/npm-tools && npm ci
19+
echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
20+
cd $GITHUB_WORKSPACE/components/ide/gha-update-image/
1921
yarn
20-
npm i -g bun
2122
- name: Check for updates
2223
id: updates
2324
run: |

.github/workflows/code-updates.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ jobs:
1212
run: |
1313
curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v0.2.1/oci-tool_0.2.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
1414
chmod +x /usr/local/bin/oci-tool
15-
cd ./components/ide/gha-update-image/
15+
cd ./dev/npm-tools && npm ci
16+
echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
17+
cd $GITHUB_WORKSPACE/components/ide/gha-update-image/
1618
yarn
17-
npm i -g bun
1819
- name: Check for updates
1920
id: updates
2021
run: |

.github/workflows/jetbrains-auto-update-template.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ jobs:
3535
leeway_segment_key: ${{ secrets.LEEWAY_SEGMENT_KEY }}
3636
- name: Install dependencies
3737
run: |
38-
cd ./components/ide/gha-update-image/
38+
cd ./dev/npm-tools && npm ci
39+
echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
40+
cd $GITHUB_WORKSPACE/components/ide/gha-update-image/
3941
yarn
40-
npm i -g bun
4142
- name: Find Nightly Target
4243
id: find-target
4344
run: |

.github/workflows/jetbrains-update-plugin-platform-template.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ jobs:
3333
run: |
3434
curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v0.2.1/oci-tool_0.2.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
3535
chmod +x /usr/local/bin/oci-tool
36-
cd ./components/ide/gha-update-image/
36+
cd ./dev/npm-tools && npm ci
37+
echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
38+
cd $GITHUB_WORKSPACE/components/ide/gha-update-image/
3739
yarn
38-
npm i -g bun
3940
- name: Check for Update
4041
id: change
4142
run: |

.github/workflows/jetbrains-updates.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
run: |
1616
curl -fsSL https://github.com/csweichel/oci-tool/releases/download/v0.2.1/oci-tool_0.2.1_linux_amd64.tar.gz | tar xz -C /usr/local/bin
1717
chmod +x /usr/local/bin/oci-tool
18-
cd ./components/ide/gha-update-image
18+
cd ./dev/npm-tools && npm ci
19+
echo "$PWD/node_modules/.bin" >> $GITHUB_PATH
20+
cd $GITHUB_WORKSPACE/components/ide/gha-update-image
1921
yarn
20-
npm i -g bun
2122
- name: Check for updates
2223
run: |
2324
cd ./components/ide/gha-update-image

dev/image/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ ENV PATH=/home/gitpod/.nvm/versions/node/v${GITPOD_NODE_VERSION}/bin:$PATH
131131

132132
# Disable npm/yarn lifecycle scripts by default (security hardening)
133133
# To allow specific packages, use: npm rebuild <package> or yarn rebuild <package>
134-
RUN npm config set ignore-scripts true --location=user && \
134+
RUN npm config set ignore-scripts true --location=global && \
135+
npm config set ignore-scripts true --location=user && \
135136
echo 'ignore-scripts true' >> ~/.yarnrc
136137

137138
# Disable npx (security hardening - prevents arbitrary package execution)
138-
RUN sudo rm -f /usr/bin/npx /usr/local/bin/npx && \
139+
RUN sudo rm -f /usr/bin/npx /usr/local/bin/npx /home/gitpod/.nvm/versions/node/v${GITPOD_NODE_VERSION}/bin/npx && \
139140
echo '#!/bin/sh' | sudo tee /usr/local/bin/npx > /dev/null && \
140141
echo 'echo "npx is disabled for security reasons. Use explicit package installation instead." >&2' | sudo tee -a /usr/local/bin/npx > /dev/null && \
141142
echo 'exit 1' | sudo tee -a /usr/local/bin/npx > /dev/null && \

0 commit comments

Comments
 (0)