diff --git a/.github/actions/docker/action.yaml b/.github/actions/docker/action.yaml index 8eabd2ee1ef..ff7d701eb28 100644 --- a/.github/actions/docker/action.yaml +++ b/.github/actions/docker/action.yaml @@ -33,14 +33,14 @@ runs: using: composite steps: - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ inputs.dockerhub_username }} password: ${{ inputs.dockerhub_token }} if: ${{ inputs.dockerhub_token != '' }} - name: Set up QEMU - uses: docker/setup-qemu-action@master + uses: docker/setup-qemu-action@v3 with: platforms: ${{ inputs.platforms }} @@ -57,7 +57,7 @@ runs: - name: Set up Docker BuildX id: buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: install: true driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760 @@ -96,7 +96,7 @@ runs: - name: Set Docker tags and labels id: docker_meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ inputs.image }} tags: | @@ -117,7 +117,7 @@ runs: - name: Build and push Docker image ${{ inputs.image }} id: docker_build - uses: docker/build-push-action@v4.0.0 + uses: docker/build-push-action@v5 with: context: . builder: ${{ steps.buildx.outputs.name }} diff --git a/.github/workflows/all-packages.yml b/.github/workflows/all-packages.yml index c7a4c6fd1aa..37d426b8d50 100644 --- a/.github/workflows/all-packages.yml +++ b/.github/workflows/all-packages.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.JS uses: actions/setup-node@v3 @@ -43,10 +43,10 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Audit crates - uses: actions-rs/audit-check@v1 + uses: rustsec/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Enable corepack run: corepack enable @@ -69,7 +69,7 @@ jobs: timeout-minutes: 120 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -77,7 +77,7 @@ jobs: uses: chetan/git-restore-mtime-action@v2 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -95,7 +95,7 @@ jobs: run: yarn build --filter "+dash" - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: install: true driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760 @@ -184,13 +184,13 @@ jobs: timeout-minutes: 120 steps: - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -210,7 +210,7 @@ jobs: run: yarn build --filter "+dash" - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: install: true driver-opts: env.BUILDKIT_STEP_LOG_MAX_SIZE=10485760 @@ -302,10 +302,10 @@ jobs: security-events: write steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ac153455c26..7238fbec4ec 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout main - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Prepare docs run: "${GITHUB_WORKSPACE}/scripts/prepare_docs.sh" diff --git a/.github/workflows/js-checks.yml b/.github/workflows/js-checks.yml index 02f1352f946..b6624c7d40a 100644 --- a/.github/workflows/js-checks.yml +++ b/.github/workflows/js-checks.yml @@ -30,10 +30,10 @@ jobs: timeout-minutes: 15 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -66,7 +66,7 @@ jobs: firefox-version: "latest" - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -74,7 +74,7 @@ jobs: uses: chetan/git-restore-mtime-action@v2 - name: Login to DockerHub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -104,7 +104,7 @@ jobs: if: ${{ !inputs.start-local-network }} - name: Set up Docker BuildX - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 if: ${{ inputs.start-local-network }} with: install: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c43537409fb..5d5623e40ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: if: github.event_name != 'workflow_dispatch' steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Check package version matches tag uses: geritol/match-tag-to-package-version@0.2.0 @@ -80,7 +80,7 @@ jobs: timeout-minutes: 120 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -121,7 +121,7 @@ jobs: timeout-minutes: 120 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -165,7 +165,7 @@ jobs: timeout-minutes: 120 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -209,7 +209,7 @@ jobs: timeout-minutes: 120 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -265,7 +265,7 @@ jobs: os: macos-12 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install macOS build deps if: runner.os == 'macOS' diff --git a/.github/workflows/rs-checks.yml b/.github/workflows/rs-checks.yml index 4b53ff3b94b..5ce2b11f7b9 100644 --- a/.github/workflows/rs-checks.yml +++ b/.github/workflows/rs-checks.yml @@ -15,7 +15,7 @@ jobs: timeout-minutes: 15 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Rust uses: ./.github/actions/rust @@ -23,9 +23,8 @@ jobs: toolchain: stable components: clippy - - uses: actions-rs/clippy-check@v1 + - uses: clechasseur/rs-clippy-check@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} args: --all-features formatting: @@ -33,7 +32,7 @@ jobs: runs-on: [ "self-hosted", "linux", "x64", "ubuntu-platform" ] steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Rust uses: ./.github/actions/rust @@ -50,7 +49,7 @@ jobs: timeout-minutes: 15 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Rust uses: ./.github/actions/rust @@ -65,7 +64,7 @@ jobs: steps: - name: Checkout base commit - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.base.ref }} @@ -90,7 +89,7 @@ jobs: echo "::set-output name=base_dir::$(pwd)/base_structures" - name: Checkout PR commit - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Check structure changes run: | @@ -98,7 +97,7 @@ jobs: if [[ $file == *.rs ]]; then awk '/@append_only/,/}/' $file > "$(basename $file).append_only.pr" awk '/@immutable/,/}/' $file > "$(basename $file).immutable.pr" - + # Check append_only structures if ! diff -u "${{ steps.base_structures.outputs.base_dir }}/$(basename $file).append_only.base" "$(basename $file).append_only.pr" | grep "^-" | grep -v "@append_only" | grep -v "^-" | grep -v "^///" | grep -v "^//" | grep -v "^-$"; then echo "No deletions detected in @append_only structures in $file. Test passed." @@ -106,7 +105,7 @@ jobs: echo "Deletions detected in @append_only structures in $file. Test failed." exit 1 fi - + # Check immutable structures if ! diff -u "${{ steps.base_structures.outputs.base_dir }}/$(basename $file).immutable.base" "$(basename $file).immutable.pr" | grep -E "^\+[^/+]|^-[^/-]" ; then echo "No code changes detected in @immutable structures in $file. Test passed." @@ -123,7 +122,7 @@ jobs: timeout-minutes: 15 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Rust uses: ./.github/actions/rust diff --git a/.github/workflows/wasm-dpp.yml b/.github/workflows/wasm-dpp.yml index cb88ccf7cbb..85f675a6301 100644 --- a/.github/workflows/wasm-dpp.yml +++ b/.github/workflows/wasm-dpp.yml @@ -45,7 +45,7 @@ jobs: timeout-minutes: 15 steps: - name: Check out repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Rust uses: ./.github/actions/rust