diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8038c82..d1e9b22e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Push to registry ${{ matrix.publish_target }} run: | set -xev @@ -67,30 +67,30 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Build the dependencies needed for the image - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: | :fabric-chaincode-docker:copyAllDeps - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 with: buildkitd-flags: --debug config-inline: | [worker.oci] max-parallelism = 1 - name: Login to the ${{ matrix.DOCKER_REGISTRY }} Container Registry - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ matrix.DOCKER_REGISTRY }} username: ${{ matrix.DOCKER_REGISTRY == 'docker.io' && secrets.DOCKERHUB_USERNAME || github.actor }} password: ${{ matrix.DOCKER_REGISTRY == 'docker.io' && secrets.DOCKERHUB_TOKEN || secrets.GITHUB_TOKEN }} - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ matrix.DOCKER_REGISTRY }}/${{ github.repository_owner }}/fabric-javaenv tags: | @@ -99,7 +99,7 @@ jobs: type=semver,pattern={{major}}.{{minor}}.{{patch}} - name: Build and push ${{ matrix.COMPONENT }} Image id: push - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: platforms: linux/amd64,linux/arm64 file: fabric-chaincode-docker/Dockerfile diff --git a/.github/workflows/scheduled-scan.yml b/.github/workflows/scheduled-scan.yml index 8e778d33..c303b270 100644 --- a/.github/workflows/scheduled-scan.yml +++ b/.github/workflows/scheduled-scan.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: stable - name: Scan diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6e6d3f69..c3a3bc74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,9 +25,9 @@ jobs: java-version: '11' cache: 'gradle' - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 + uses: gradle/wrapper-validation-action@v2 - name: Build and Unit test - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: | :fabric-chaincode-shim:build @@ -63,7 +63,7 @@ jobs: peer version weft --version - name: Integration Tests - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: arguments: | :fabric-chaincode-integration-test:build