Skip to content

Commit 3a9834a

Browse files
committed
Run with node20
Change the action to run with node20. Update Node version and actions in workflows. Fix #114. Signed-off-by: thc202 <thc202@gmail.com>
1 parent c910ea6 commit 3a9834a

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/check-dist.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525

2626
- name: Set Node.js
27-
uses: actions/setup-node@v2
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 16.x
29+
node-version: 20.x
3030

3131
- name: Install dependencies
3232
run: npm ci
@@ -44,7 +44,7 @@ jobs:
4444
id: diff
4545

4646
# If index.js was different than expected, upload the expected version as an artifact
47-
- uses: actions/upload-artifact@v2
47+
- uses: actions/upload-artifact@v3
4848
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
4949
with:
5050
name: dist

.github/workflows/check-run.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx
2323

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ All notable changes to this GitHub action will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
7+
### Changed
8+
- Run with node20. [#114](https://github.com/zaproxy/action-baseline/issues/114)
79

810
## [0.10.0] - 2023-10-31
911
### Added

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ inputs:
3838
required: false
3939
default: 'zap_scan'
4040
runs:
41-
using: 'node16'
41+
using: 'node20'
4242
main: 'dist/index.js'

0 commit comments

Comments
 (0)