Skip to content

Commit

Permalink
chore: remove unnecessary cross-spawn from npm
Browse files Browse the repository at this point in the history
Resolves  CVE-2024-21538.
  • Loading branch information
meltsufin committed Nov 21, 2024
1 parent 356f0af commit 80ff0be
Show file tree
Hide file tree
Showing 21 changed files with 63 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/auto-approve/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/auto-label/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/blunderbuss/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/canary-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/cherry-pick-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/conventional-commit-lint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/do-not-merge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/failurechecker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/flakybot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/generate-bot/templates/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/generated-files-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/header-checker-lint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/label-sync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/loadtest-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/merge-on-green/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/owlbot-bootstrapper/common-container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/cli

Expand Down
3 changes: 3 additions & 0 deletions packages/release-please/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/repo-metadata-lint/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/snippet-bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/sync-repo-settings/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down
3 changes: 3 additions & 0 deletions packages/trusted-contribution/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN npm run compile

FROM node:18.20.5-slim

# Remove unnecessary cross-spawn from npm to resolve CVE-2024-21538
RUN rm -r /usr/local/lib/node_modules/npm/node_modules/cross-spawn/

# Create and change to the app directory.
WORKDIR /usr/src/app

Expand Down

0 comments on commit 80ff0be

Please sign in to comment.