From 3a9834a1fd82911f3973e8d8f2b7ec3a98ee9c9f Mon Sep 17 00:00:00 2001 From: thc202 Date: Fri, 17 Nov 2023 14:26:55 +0000 Subject: [PATCH] Run with node20 Change the action to run with node20. Update Node version and actions in workflows. Fix #114. Signed-off-by: thc202 --- .github/workflows/check-dist.yml | 8 ++++---- .github/workflows/check-run.yml | 2 +- CHANGELOG.md | 2 ++ action.yml | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 77b0df24..8980c42d 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -21,12 +21,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20.x - name: Install dependencies run: npm ci @@ -44,7 +44,7 @@ jobs: id: diff # If index.js was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: dist diff --git a/.github/workflows/check-run.yml b/.github/workflows/check-run.yml index c0ef897e..692397a8 100644 --- a/.github/workflows/check-run.yml +++ b/.github/workflows/check-run.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - run: sudo apt-get update && sudo apt-get install -y nginx && sudo systemctl start nginx diff --git a/CHANGELOG.md b/CHANGELOG.md index 971f12ee..e5eeee15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this GitHub action will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## [Unreleased] +### Changed +- Run with node20. [#114](https://github.com/zaproxy/action-baseline/issues/114) ## [0.10.0] - 2023-10-31 ### Added diff --git a/action.yml b/action.yml index 2d8e3894..58bc45e0 100644 --- a/action.yml +++ b/action.yml @@ -38,5 +38,5 @@ inputs: required: false default: 'zap_scan' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js'