From cbc246b9cd250e979b9f292158980da9c8b4135e Mon Sep 17 00:00:00 2001 From: Michalina Date: Wed, 21 Feb 2024 13:52:43 +0100 Subject: [PATCH] Update actions to versions running on Node20 As per https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/, GitHub has started a deprecation process for the GitHub Actions that run on Node16. We're updating Actions that use this version of Node to newer versions, running on Node20. --- .github/actions/docker-build-push/action.yml | 8 ++-- .github/workflows/client.yml | 46 +++++++++---------- .github/workflows/contracts-ecdsa-docs.yml | 4 +- .github/workflows/contracts-ecdsa.yml | 30 ++++++------ .../contracts-random-beacon-docs.yml | 4 +- .github/workflows/contracts-random-beacon.yml | 30 ++++++------ .github/workflows/npm-ecdsa.yml | 4 +- .github/workflows/npm-random-beacon.yml | 4 +- 8 files changed, 65 insertions(+), 65 deletions(-) diff --git a/.github/actions/docker-build-push/action.yml b/.github/actions/docker-build-push/action.yml index f4e806e0f1..1c4cd93d0f 100644 --- a/.github/actions/docker-build-push/action.yml +++ b/.github/actions/docker-build-push/action.yml @@ -22,10 +22,10 @@ runs: using: "composite" steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -40,7 +40,7 @@ runs: - name: Login to Google Container Registry if: inputs.push == 'true' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.GCR_REGISTRY_URL }} username: _json_key @@ -59,7 +59,7 @@ runs: echo "IMAGE_NAME=${{ env.GCR_REGISTRY_URL }}/${{ env.GOOGLE_PROJECT_ID }}/${{ inputs.imageName }}" >> $GITHUB_ENV - name: Build and push image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: ${{ inputs.context }} # GCR image should be named according to following convention: diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 7e6fcb804f..1b4d9c42ba 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -36,10 +36,10 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: @@ -52,10 +52,10 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: @@ -71,7 +71,7 @@ jobs: || needs.client-detect-changes.outputs.path-filter == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Fetch the whole history for the `git describe` command to work. fetch-depth: 0 @@ -88,10 +88,10 @@ jobs: environment: ${{ github.event.inputs.environment }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -99,7 +99,7 @@ jobs: ${{ runner.os }}-buildx- - name: Build Docker Build Image - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: target: build-docker tags: go-build-env @@ -123,7 +123,7 @@ jobs: docker save --output /tmp/go-build-env-image.tar go-build-env - name: Upload Docker Build Image - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: go-build-env-image path: /tmp/go-build-env-image.tar @@ -137,7 +137,7 @@ jobs: - name: Build Docker Runtime Image if: github.event_name != 'workflow_dispatch' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: target: runtime-docker labels: | @@ -148,7 +148,7 @@ jobs: - name: Login to Google Container Registry if: github.event_name == 'workflow_dispatch' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.GCR_REGISTRY_URL }} username: _json_key @@ -156,7 +156,7 @@ jobs: - name: Build and publish Docker Runtime Image if: github.event_name == 'workflow_dispatch' - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 env: IMAGE_NAME: "keep-client" with: @@ -177,7 +177,7 @@ jobs: context: . - name: Build Client Binaries - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: target: output-bins outputs: type=local,dest=./out/bin/ @@ -189,7 +189,7 @@ jobs: context: . - name: Archive Client Binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: binaries path: | @@ -240,7 +240,7 @@ jobs: env: GO111MODULE: on steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: securego/gosec@master with: args: | @@ -257,8 +257,8 @@ jobs: || needs.client-detect-changes.outputs.path-filter == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: "go.mod" - name: gofmt @@ -275,8 +275,8 @@ jobs: || needs.client-detect-changes.outputs.path-filter == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: "go.mod" - run: go vet @@ -288,8 +288,8 @@ jobs: || needs.client-detect-changes.outputs.path-filter == 'true' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version-file: "go.mod" - name: Staticcheck @@ -306,10 +306,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Download Docker Build Image - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: go-build-env-image path: /tmp diff --git a/.github/workflows/contracts-ecdsa-docs.yml b/.github/workflows/contracts-ecdsa-docs.yml index 50b9e43678..542b24baca 100644 --- a/.github/workflows/contracts-ecdsa-docs.yml +++ b/.github/workflows/contracts-ecdsa-docs.yml @@ -18,9 +18,9 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: diff --git a/.github/workflows/contracts-ecdsa.yml b/.github/workflows/contracts-ecdsa.yml index fbb1c1194f..bc8a5a340a 100644 --- a/.github/workflows/contracts-ecdsa.yml +++ b/.github/workflows/contracts-ecdsa.yml @@ -43,10 +43,10 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: @@ -65,9 +65,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -95,9 +95,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -106,7 +106,7 @@ jobs: cache: "yarn" cache-dependency-path: solidity/ecdsa/yarn.lock - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.10.8 @@ -141,9 +141,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -172,9 +172,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -206,9 +206,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -307,9 +307,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see diff --git a/.github/workflows/contracts-random-beacon-docs.yml b/.github/workflows/contracts-random-beacon-docs.yml index 87e826bf5b..0514da600b 100644 --- a/.github/workflows/contracts-random-beacon-docs.yml +++ b/.github/workflows/contracts-random-beacon-docs.yml @@ -18,9 +18,9 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: diff --git a/.github/workflows/contracts-random-beacon.yml b/.github/workflows/contracts-random-beacon.yml index 3bd3a8147d..7e70c41ff7 100644 --- a/.github/workflows/contracts-random-beacon.yml +++ b/.github/workflows/contracts-random-beacon.yml @@ -43,10 +43,10 @@ jobs: outputs: path-filter: ${{ steps.filter.outputs.path-filter }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 if: github.event_name == 'pull_request' - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 if: github.event_name == 'pull_request' id: filter with: @@ -65,9 +65,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -95,9 +95,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -106,7 +106,7 @@ jobs: cache: "yarn" cache-dependency-path: solidity/random-beacon/yarn.lock - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: 3.10.8 @@ -139,9 +139,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -170,9 +170,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -204,9 +204,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see @@ -303,9 +303,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 was sometimes causing issues with # artifacts generation during `hardhat compile` - see diff --git a/.github/workflows/npm-ecdsa.yml b/.github/workflows/npm-ecdsa.yml index ae102bac4a..2400e10c15 100644 --- a/.github/workflows/npm-ecdsa.yml +++ b/.github/workflows/npm-ecdsa.yml @@ -21,9 +21,9 @@ jobs: run: working-directory: ./solidity/ecdsa steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 may cause issues with the # artifacts generation during `hardhat compile` - see diff --git a/.github/workflows/npm-random-beacon.yml b/.github/workflows/npm-random-beacon.yml index 88776fae45..028b49047f 100644 --- a/.github/workflows/npm-random-beacon.yml +++ b/.github/workflows/npm-random-beacon.yml @@ -21,9 +21,9 @@ jobs: run: working-directory: ./solidity/random-beacon steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: # Using fixed version, because 18.16 may cause issues with the # artifacts generation during `hardhat compile` - see