diff --git a/.github/workflows/build-all.yml b/.github/workflows/build-all.yml index f6d9f6f..aeb5aec 100644 --- a/.github/workflows/build-all.yml +++ b/.github/workflows/build-all.yml @@ -20,7 +20,7 @@ jobs: os_matrix: "{\"os_version\":[\"debian11\",\"debian12\",\"ubuntu20\",\"ubuntu22\"]}" steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Lowercase repo owner id: repo_owner run: echo "lowercase=$(echo ${{ github.repository_owner }} | tr \"[:upper:]\" \"[:lower:]\")" >>$GITHUB_OUTPUT @@ -34,7 +34,7 @@ jobs: matrix: ${{ fromJson(needs.workflow_setup.outputs.os_matrix) }} steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Cache Docker layers @@ -56,7 +56,7 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new - name: Upload docker image artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: indy_node_${{ matrix.os_version }} path: /tmp/indy_node_${{ matrix.os_version }}.tar @@ -76,7 +76,7 @@ jobs: needs: workflow_setup steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Cache Docker layers @@ -97,7 +97,7 @@ jobs: cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache-new - name: Upload docker image artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: indy_node_controller path: /tmp/indy_node_controller.tar @@ -115,18 +115,18 @@ jobs: fail-fast: false steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: driver-opts: network=host - name: Download node artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: name: indy_node_${{ matrix.os_version }} path: /tmp - name: Download controller artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v6 with: name: indy_node_controller path: /tmp @@ -148,7 +148,7 @@ jobs: ./parse_validator_info.sh echo "::endgroup::" - name: Safe ledger_state.json for later inspection - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: ${{ matrix.os_version }}-tmp-test-${{ github.sha }}-ledger_state.json path: ledger_state.json @@ -167,7 +167,7 @@ jobs: steps.ledger.outputs.n2_unreachable != 0 || steps.ledger.outputs.n3_unreachable != 0 || steps.ledger.outputs.n4_unreachable != 0 - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: core.setFailed('${{ matrix.os_version }} - Not all nodes are in sync!') - name: Send node restart command @@ -183,7 +183,7 @@ jobs: echo "::set-output name=count::$(echo "$OUTPUT" | awk -F= '$1>${{ steps.node-restart.outputs.restart-time }}' | wc -l)" - name: Fail if not all nodes restarted if: steps.nodes_restarted.outputs.count != 4 - uses: actions/github-script@v7 + uses: actions/github-script@v8 with: script: core.setFailed('${{ matrix.os_version }} - Not all nodes have been restarted') @@ -203,7 +203,7 @@ jobs: matrix: ${{ fromJson(needs.workflow_setup.outputs.os_matrix) }} steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: indy-node-version id: indy-node-version shell: bash @@ -270,7 +270,7 @@ jobs: if: ${{ github.event_name != 'pull_request' }} steps: - name: Check out the repo - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Cache Docker layers diff --git a/.github/workflows/trivy-all.yml b/.github/workflows/trivy-all.yml index e16fb1f..43d83a8 100644 --- a/.github/workflows/trivy-all.yml +++ b/.github/workflows/trivy-all.yml @@ -28,7 +28,7 @@ jobs: os_version: [ debian11, ubuntu20 ] steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: indy-node-version id: indy-node-version shell: bash @@ -54,14 +54,14 @@ jobs: sed -i 's/"name": "Trivy",/"name": "Trivy${{ matrix.os_version }}Latest",/g' trivy-indy-node-${{ steps.indy-node-version.outputs.nodeVersion }}-${{ matrix.os_version }}.sarif - name: 'Safe trivy-indy-node-${{ matrix.os_version }}.sarif' - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v5 with: name: trivy-indy-node-${{ steps.indy-node-version.outputs.nodeVersion }}-${{ matrix.os_version }}.sarif path: trivy-indy-node-${{ steps.indy-node-version.outputs.nodeVersion }}-${{ matrix.os_version }}.sarif retention-days: 8 - name: Upload Trivy scan results to GitHub Security tab - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@v4 with: sarif_file: 'trivy-indy-node-${{ steps.indy-node-version.outputs.nodeVersion }}-${{ matrix.os_version }}.sarif'