Skip to content

Commit

Permalink
ci(github): stop using NodeJS v16 based actions due to deprecation
Browse files Browse the repository at this point in the history
No changes other than the mass find & replacing of the GitHub actions
that we use for setting up NodeJS, checking code out and caching.

Address the warnings that started popping up in the CI that look like
this, asking for a mass-upgrade of CI action versions:

> Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20:
> actions/setup-node@v4.0.2,
> actions/checkout@v4.1.1,
> actions/cache@v4.0.1
> For more information see:
> https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Fixes hyperledger-cacti#3079

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Mar 11, 2024
1 parent 86322c8 commit 6126e6d
Show file tree
Hide file tree
Showing 52 changed files with 346 additions and 346 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/.dast-nuclei-cmd-api-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
&& sudo rm -f /etc/apt/sources.list.d/sovrin.list*
- name: Set up NodeJS ${{ env.NODEJS_VERSION }}
uses: actions/setup-node@v3.6.0
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ env.NODEJS_VERSION }}

Expand All @@ -37,7 +37,7 @@ jobs:
- name: Verify jq
run: jq --version

- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- uses: actions/setup-go@v4.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/actionlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
actionlint:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/checkout@v4.1.1
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.25/scripts/download-actionlint.bash)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/all-nodejs-packages-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
build-and-publish-packages:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1
- run: git fetch --unshallow --prune
- uses: actions/setup-node@v3.6.0
- uses: actions/setup-node@v4.0.2
with:
always-auth: true
node-version: ${{ env.NODEJS_VERSION }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/besu-all-in-one-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Build image
run: docker build $DOCKER_BUILD_DIR --file $DOCKERFILE_PATH --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cacti-dev-container-vscode-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ jobs:

steps:
- name: Use Node.js ${{ env.NODEJS_VERSION }}
uses: actions/setup-node@v3.6.0
uses: actions/setup-node@v4.0.2
with:
node-version: ${{ env.NODEJS_VERSION }}

- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: npm_install_@devcontainers/cli@0.44.0
run: npm install -g @devcontainers/cli@0.44.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cactus-whitepaper-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
contents: read

steps:
- uses: actions/checkout@v3.5.2
- uses: actions/checkout@v4.1.1

- name: Build image
run: docker build $DOCKER_BUILD_DIR --file $DOCKERFILE_PATH --tag $IMAGE_NAME --label "runnumber=${GITHUB_RUN_ID}"
Expand Down
Loading

0 comments on commit 6126e6d

Please sign in to comment.