Skip to content

Commit d8f3f50

Browse files
Athira SreekumarAthira Sreekumar
authored andcommitted
fix: Updated Node packages to fix CVEs
Resolves: #368 Signed-off-by: Athira Sreekumar <[email protected]>
1 parent ea6921d commit d8f3f50

File tree

8 files changed

+1308
-1233
lines changed

8 files changed

+1308
-1233
lines changed

.github/actions/bundle/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ COPY package-lock.json .
66

77
RUN npm install
88

9-
ENTRYPOINT ["node", "/index.js"];
9+
ENTRYPOINT ["node", "/index.js"]

.github/actions/commenter/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ COPY package-lock.json .
66

77
RUN npm install
88

9-
ENTRYPOINT ["node", "/index.js"];
9+
ENTRYPOINT ["node", "/index.js"]

.github/actions/coverage-report/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ COPY package-lock.json .
66

77
RUN npm install
88

9-
ENTRYPOINT ["node", "/index.js"];
9+
ENTRYPOINT ["node", "/index.js"]

.github/workflows/node-pr-jobs.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ jobs:
1313
run:
1414
working-directory: ui
1515
steps:
16-
- uses: actions/checkout@v2
17-
- name: Use Node.js 12.x
18-
uses: actions/setup-node@v1
16+
- uses: actions/checkout@v3
17+
- name: Use Node.js 16.x
18+
uses: actions/setup-node@v3
1919
with:
20-
node-version: 12.x
20+
node-version: 16.x
2121
- name: Install Dependencies
2222
run: npm ci
2323
- name: Build
@@ -47,11 +47,11 @@ jobs:
4747
working-directory: ui
4848

4949
steps:
50-
- uses: actions/checkout@v2
51-
- name: Use Node.js 12.x
52-
uses: actions/setup-node@v1
50+
- uses: actions/checkout@v3
51+
- name: Use Node.js 16.x
52+
uses: actions/setup-node@v3
5353
with:
54-
node-version: 12.x
54+
node-version: 16.x
5555
- name: Install Dependencies
5656
run: npm ci
5757
- name: Code lint
@@ -63,18 +63,18 @@ jobs:
6363
run:
6464
working-directory: ui
6565
steps:
66-
- uses: actions/checkout@v2
66+
- uses: actions/checkout@v3
6767
- name: Increase file watcher limit
6868
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
69-
- uses: actions/setup-node@v1
69+
- uses: actions/setup-node@v3
7070
with:
71-
node-version: 12.x
71+
node-version: 16.x
7272
- uses: microsoft/playwright-github-action@v1
7373
- name: Install dependencies
7474
run: npm ci
7575
- name: run tests
7676
run: npm run test:e2e
77-
- uses: actions/upload-artifact@v2
77+
- uses: actions/upload-artifact@v3
7878
if: failure()
7979
with:
8080
name: failures

ui/.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"sourceType": "module",
1515
"ecmaFeatures": {
1616
"jsx": true
17+
},
18+
"babelOptions": {
19+
"presets": ["@babel/preset-env", "@babel/preset-react"]
1720
}
1821
},
1922
"env": {
@@ -28,7 +31,7 @@
2831
},
2932
"import/resolver": "webpack"
3033
},
31-
"parser": "babel-eslint",
34+
"parser": "@babel/eslint-parser",
3235
"rules": {
3336
"prettier/prettier": "error",
3437
"strict": [2, "global"],

ui/e2e/features/step_definitions/producer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const stepDefs = (cucumber) => {
3232
'I set the payload to {string}',
3333
async (world, payload) => {
3434
await page.fill(getSelector('producer_value_input'), payload);
35+
await page.waitForTimeout(150);
3536
await page.waitForSelector(getSelector('producer_value_input'));
3637
}
3738
);

0 commit comments

Comments
 (0)