Skip to content

Commit 0d45b5a

Browse files
Copilotcommjoen
andcommitted
Fix GitHub Actions compatibility: add Node.js 24 setup to workflows and enforce engines requirements
Co-authored-by: commjoen <[email protected]>
1 parent 80c332f commit 0d45b5a

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
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:

cleaner/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "1.0.0",
44
"description": "k8s ChronJob for cleaning up unused WrongSecrets instances.",
55
"main": "src/main.js",
6+
"engines": {
7+
"node": ">=24.0.0"
8+
},
69
"scripts": {
710
"test": "jest",
811
"lint": "eslint src/**"

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"engines": {
3+
"node": ">=24.0.0"
4+
},
25
"devDependencies": {
36
"@commitlint/config-conventional": "^19.5.0"
47
},

wrongsecrets-balancer/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "1.1.0",
44
"description": "Run Capture the Flags and Security Trainings with OWASP Wrongsecrets (based on multijuicer from Iteratec). Requires node24",
55
"main": "src/index.js",
6+
"engines": {
7+
"node": ">=24.0.0"
8+
},
69
"scripts": {
710
"lint": "eslint src/**",
811
"test": "NODE_ENV=test jest src/proxy/proxy.test.js src/teams/teams.test.js"

wrongsecrets-balancer/ui/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "frontend",
33
"version": "0.1.1",
44
"license": "Apache-2.0",
5+
"engines": {
6+
"node": ">=24.0.0"
7+
},
58
"dependencies": {
69
"axios": "^1.11.0",
710
"crypto-js": "^4.2.0",

0 commit comments

Comments
 (0)