Skip to content

Commit 87e1632

Browse files
authored
Merge pull request #962 from OWASP/copilot/fix-961
Upgrade to Node.js 24 and modernize dependencies with Jest 30 test isolation fix, TypeScript 5.9.2, and comprehensive GitHub Actions compatibility
2 parents 58a76ea + c4adcf7 commit 87e1632

File tree

15 files changed

+5462
-8470
lines changed

15 files changed

+5462
-8470
lines changed

.github/workflows/minikube-k8s-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
2222
- uses: actions/checkout@v5
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 24
2326
- name: Start minikube
2427
uses: medyagh/setup-minikube@master
2528
with:
@@ -45,6 +48,9 @@ jobs:
4548
# Steps represent a sequence of tasks that will be executed as part of the job
4649
steps:
4750
- uses: actions/checkout@v5
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version: 24
4854
- name: Start minikube
4955
uses: medyagh/setup-minikube@master
5056
with:

.github/workflows/pre-commit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
if: github.event.action == 'labeled' && github.event.label.name == 'pre-commit ci run'
2727
env:
2828
GH_TOKEN: ${{ github.token }}
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 24
2933
- name: Setup python
3034
uses: actions/setup-python@v5
3135
with:

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v5
1111
- uses: actions/setup-node@v4
1212
with:
13-
node-version: 22
13+
node-version: 24
1414
- name: Install Balancer
1515
run: |
1616
cd cleaner
@@ -30,11 +30,11 @@ jobs:
3030
- uses: actions/checkout@v5
3131
- uses: actions/setup-node@v4
3232
with:
33-
node-version: 22
33+
node-version: 24
3434
- name: "Install & Build BalancerUI"
3535
run: |
3636
cd wrongsecrets-balancer/ui
37-
npm ci
37+
npm ci --legacy-peer-deps
3838
npm run build
3939
- name: Install Balancer
4040
run: |

cleaner/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM node:22-alpine as build
1+
FROM node:24-alpine as build
22
RUN mkdir -p /home/app
33
WORKDIR /home/app
44
COPY package.json package-lock.json ./
55
RUN npm ci --omit=dev
66

7-
FROM node:22-alpine
7+
FROM node:24-alpine
88
RUN addgroup --system --gid 1001 app && adduser app --system --uid 1001 --ingroup app
99
WORKDIR /home/app/
1010
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/

0 commit comments

Comments
 (0)