Skip to content

Commit d19d4f4

Browse files
authored
Merge pull request #297 from docker/sec-cli/ignore-scripts-fix-20260527-154450
ci: add ignore-scripts to Node package manager config (20260527-154450)
2 parents 5f84f06 + 79f4727 commit d19d4f4

10 files changed

Lines changed: 11 additions & 0 deletions

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

functions/javascript-runner/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

functions/javascript-runner/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
FROM node:22-slim@sha256:377674fd5bb6fc2a5a1ec4e0462c4bfd4cee1c51f705bbf4bda0ec2c9a73af72 AS deps
33
WORKDIR /app
44
COPY package*.json ./
5+
COPY .npmrc .
56
RUN --mount=type=cache,target=/root/.npm npm ci --omit=dev
67

78
# The second stage - "build"
89
FROM deps AS build
10+
COPY .npmrc .
911
RUN --mount=type=cache,target=/root/.npm npm ci
1012

1113
# The third stage, selecting a base image recommended by Scout

functions/node_intersector/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

functions/node_intersector/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ WORKDIR /tree-sitter
66
ENV PYTHONUNBUFFERED=1
77
RUN apk add --update --no-cache python3 make gcc g++ && ln -sf python3 /usr/bin/python
88

9+
COPY .npmrc .
910
RUN npm install tree-sitter tree-sitter-python tree-sitter-typescript tree-sitter-javascript
1011

1112

prompts/eslint/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

prompts/eslint/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENTRYPOINT ["/lint.sh"]
77

88
# Install node modules to /eslint
99
WORKDIR /eslint7
10+
COPY .npmrc .
1011
RUN npm install --save eslint@7 typescript
1112

1213
WORKDIR /eslint8

prompts/eslint/standardjs.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RUN apk add --no-cache bash fd jq
66
ENTRYPOINT ["/lint-standardjs.sh"]
77

88
# Install standard and ts-standard
9+
COPY .npmrc .
910
RUN npm install -g standard ts-standard standard-json
1011

1112
COPY scripts/lint-standardjs.sh /lint-standardjs.sh

prompts/telegram/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=true

prompts/telegram/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:20-alpine
22

33
# Install node-telegram-bot-api
4+
COPY .npmrc .
45
RUN npm i -g node-telegram-bot-api

0 commit comments

Comments
 (0)