Skip to content

Commit a0f85b3

Browse files
Upgrade Node 16 to Node 20 (#161)
* Update action.yml * Update Dockerfile * Update main.yml * Update action-cve version. * Remove double quotes. * Fix action version. * Update action versions. * Update deps. * Upgrade versions, add missing packages. * Linting. * Upgrades via make dist-rebuild. * Fix Mayhemfiles to work around comment bug in mayhem-core. --------- Co-authored-by: Dylan Bargatze <dbargatz@users.noreply.github.com>
1 parent 2814da9 commit a0f85b3

15 files changed

Lines changed: 27221 additions & 1500 deletions

File tree

.github/workflows/dependabot-alerts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
# X.X.X - Latest version available at: https://github.com/kunalnagarco/action-cve/releases
16-
- uses: kunalnagarco/action-cve@v1.7.1
16+
- uses: kunalnagarco/action-cve@v1.12.36
1717
with:
1818
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1919
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/main.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
MAYHEM_TOKEN: ${{ secrets.MAYHEM_TOKEN }}
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
# fetch entire history to compute diffs between jobs
2121
fetch-depth: 0
@@ -28,7 +28,7 @@ jobs:
2828
# make sure the action works on a clean machine without building
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232
with:
3333
# fetch entire history to compute diffs between jobs
3434
fetch-depth: 0
@@ -44,7 +44,7 @@ jobs:
4444
args: --image forallsecure/lighttpd:vulnerable --duration 60
4545

4646
- name: Upload SARIF file(s)
47-
uses: github/codeql-action/upload-sarif@v2
47+
uses: github/codeql-action/upload-sarif@v3
4848
with:
4949
sarif_file: out/sarif
5050

@@ -57,7 +57,7 @@ jobs:
5757
# make sure the action works on a clean machine without building
5858
runs-on: ubuntu-latest
5959
steps:
60-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6161
with:
6262
# fetch entire history to compute diffs between jobs
6363
fetch-depth: 0
@@ -75,21 +75,21 @@ jobs:
7575
args: --image forallsecure/lighttpd:vulnerable --duration 60
7676

7777
- name: Archive Coverage report
78-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@v4
7979
with:
8080
name: coverage-report
8181
path: out/coverage/
8282
if-no-files-found: error
8383

8484
- name: Archive JUnit results
85-
uses: actions/upload-artifact@v3
85+
uses: actions/upload-artifact@v4
8686
with:
8787
name: mcode-junit
8888
path: out/junit/
8989
if-no-files-found: error
9090

9191
- name: Upload SARIF file(s)
92-
uses: github/codeql-action/upload-sarif@v2
92+
uses: github/codeql-action/upload-sarif@v3
9393
with:
9494
sarif_file: out/sarif
9595

@@ -102,7 +102,7 @@ jobs:
102102
# make sure the action works on a clean machine without building
103103
runs-on: ubuntu-latest
104104
steps:
105-
- uses: actions/checkout@v3
105+
- uses: actions/checkout@v4
106106
with:
107107
# fetch entire history to compute diffs between jobs
108108
fetch-depth: 0
@@ -125,7 +125,7 @@ jobs:
125125
test-override-inputs:
126126
runs-on: ubuntu-latest
127127
steps:
128-
- uses: actions/checkout@v3
128+
- uses: actions/checkout@v4
129129
with:
130130
# fetch entire history to compute diffs between jobs
131131
fetch-depth: 0
@@ -154,7 +154,7 @@ jobs:
154154
# make sure the action works on a clean machine without building
155155
runs-on: ubuntu-latest
156156
steps:
157-
- uses: actions/checkout@v3
157+
- uses: actions/checkout@v4
158158
with:
159159
# fetch entire history to compute diffs between jobs
160160
fetch-depth: 0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16
1+
FROM node:20
22

33
ARG SRCDIR=/workdir
44

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
.PHONY: dist-rebuild
55
dist-rebuild:
66
docker build -t dist-builder .
7-
docker run -u $(shell id -u):$(shell id -g) --rm -v $(shell pwd):/out dist-builder cp -rv /workdir/dist/. /out/dist""
7+
docker run -u $(shell id -u):$(shell id -g) --rm -v $(shell pwd):/out dist-builder cp -rv /workdir/dist/. /out/dist
88
docker rmi -f dist-builder

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
triplet: x64-linux
7070
7171
steps:
72-
- uses: actions/checkout@v3
72+
- uses: actions/checkout@v4
7373
with:
7474
submodules: recursive
7575
@@ -115,7 +115,7 @@ jobs:
115115
# Specify one or many Mayhemfiles here
116116
117117
steps:
118-
- uses: actions/checkout@v3
118+
- uses: actions/checkout@v4
119119
120120
- name: Start analysis for ${{ matrix.mayhemfile }}
121121
uses: ForAllSecure/mcode-action@v1
@@ -128,24 +128,24 @@ jobs:
128128
coverage-output: coverage
129129
130130
- name: Upload SARIF file(s)
131-
uses: github/codeql-action/upload-sarif@v2
131+
uses: github/codeql-action/upload-sarif@v3
132132
with:
133133
sarif_file: sarif
134134
135135
- name: Archive Coverage report
136-
uses: actions/upload-artifact@v3
136+
uses: actions/upload-artifact@v4
137137
with:
138138
name: coverage-report
139139
path: coverage
140140
141141
- name: Archive JUnit results
142-
uses: actions/upload-artifact@v3
142+
uses: actions/upload-artifact@v4
143143
with:
144144
name: mcode-junit
145145
path: junit
146146
147147
- name: Upload SARIF file(s)
148-
uses: github/codeql-action/upload-sarif@v2
148+
uses: github/codeql-action/upload-sarif@v3
149149
with:
150150
sarif_file: sarif
151151
```

__tests__/lighttpd/Mayhemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ project: forallsecure/lighttpd # be filled at
44
target: lighttpd # run creation time
55
advanced_triage: true
66
tasks:
7-
# just do one quick task
8-
- name: exploitability_factors
7+
- name: exploitability_factors # just do one quick task
98
cmds:
109
- cmd: /usr/local/sbin/lighttpd -D -f /usr/local/etc/lighttpd.conf
1110
network:

__tests__/mayhemit/Mayhemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ duration: 60 # since they will
33
project: forallsecure/mayhemit # be filled at
44
target: mayhemit # run creation time
55
tasks:
6-
# just do one quick task
7-
- name: regression_testing
6+
- name: regression_testing # just do one quick task
87
cmds:
98
- cmd: /mayhemit @@

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
required: false
2121
default: ${{ github.token }}
2222
sarif-output:
23-
description: SARIF output path (must be a directory, doesn't have to exist yet). You can upload to to GitHub using the 'github/codeql-action/upload-sarif@v1' action
23+
description: SARIF output path (must be a directory, doesn't have to exist yet). You can upload to to GitHub using the 'github/codeql-action/upload-sarif@v3' action
2424
required: false
2525
junit-output:
2626
description: JUnit output path (must be a directory, doesn't have to exist yet). You can upload the artifact to GitHub using the 'actions/upload-artifact' action
@@ -43,7 +43,7 @@ inputs:
4343
description: Command line arguments to override CLI behavior
4444
required: false
4545
runs:
46-
using: "node16"
46+
using: "node20"
4747
main: "dist/index.js"
4848
outputs:
4949
runId:

0 commit comments

Comments
 (0)