diff --git a/.github/workflows/chaos-testing.yml b/.github/workflows/chaos-testing.yml index 16d06fa48..93b011236 100644 --- a/.github/workflows/chaos-testing.yml +++ b/.github/workflows/chaos-testing.yml @@ -55,21 +55,21 @@ jobs: # iterations: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Login to Docker Hub if: ${{ env.DOCKER_ORG_NAME != '' && env.DOCKER_REPO_TOKEN != '' }} - uses: docker/login-action@v3 + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: username: ${{ secrets.DOCKER_ORG_NAME }} password: ${{ secrets.DOCKER_REPO_TOKEN }} - - uses: actions/setup-java@v4 + - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 with: distribution: temurin java-version: 25 - name: Setup Gradle uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # 4.4.0 - name: Install helm - uses: azure/setup-helm@v4.3.1 + uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1 with: version: 'v3.18.3' id: install @@ -77,7 +77,7 @@ jobs: # SSH debugging session - before tests (if explicitly requested) - name: Setup upterm session (pre-test) if: ${{ inputs.enable_ssh_debug }} - uses: lhotari/action-upterm@v1 + uses: lhotari/action-upterm@b0357f23233f5ea6d58947c0c402e0631bab7334 # v1 with: ## If no one connects shut down ssh server after timeout. wait-timeout-minutes: 20 @@ -135,7 +135,7 @@ jobs: - name: Store reports and pod logs if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: chaos-test-reports-and-logs path: | @@ -147,7 +147,7 @@ jobs: # SSH debugging session - on failure (if requested) - name: Setup upterm session after failure if: ${{ (failure() || steps.chaos-tests.outcome == 'failure') && inputs.ssh_debug_on_failure == true }} - uses: lhotari/action-upterm@v1 + uses: lhotari/action-upterm@b0357f23233f5ea6d58947c0c402e0631bab7334 # v1 with: ## If no one connects shut down ssh server after timeout. wait-timeout-minutes: 20 diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 63b845022..4e65e6e59 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -60,16 +60,16 @@ jobs: steps: - name: Setup upterm session if: ${{ inputs.e2e-tests-with-ssh }} - uses: lhotari/action-upterm@v1 + uses: lhotari/action-upterm@b0357f23233f5ea6d58947c0c402e0631bab7334 # v1 - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Login to Docker Hub if: ${{ env.DOCKER_ORG_NAME != '' && env.DOCKER_REPO_TOKEN != '' }} - uses: docker/login-action@v3 + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: username: ${{ secrets.DOCKER_ORG_NAME }} password: ${{ secrets.DOCKER_REPO_TOKEN }} - - uses: actions/setup-java@v4 + - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 with: distribution: temurin java-version: 25 @@ -89,7 +89,7 @@ jobs: echo "E2E_TESTS_RESULT: ${{ steps.run_e2e_tests.outcome }}" - name: Archive debug logs - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 if: ${{ failure() && inputs.e2e-tests-logs-dump }} with: name: end-2-end-debug-logs diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9d1197c2b..fbcce5ed3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: run-chaos-tests: ${{ steps.filter.outputs.has-changes-requiring-build == 'true' || steps.filter.outputs.chaos-tests-changes == 'true' }} steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Filter commit changes uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 #v3.0.2 diff --git a/.github/workflows/maru-build-and-publish.yml b/.github/workflows/maru-build-and-publish.yml index d42953918..a7171380f 100644 --- a/.github/workflows/maru-build-and-publish.yml +++ b/.github/workflows/maru-build-and-publish.yml @@ -78,7 +78,7 @@ jobs: commit_tag: ${{ env.COMMIT_TAG }} steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set commit tag if not given if: ${{ inputs.commit_tag == '' }} run: | @@ -108,28 +108,28 @@ jobs: ./gradlew :app:installDist - name: Upload distribution artifact if: ${{ inputs.upload_dist_artifact }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: maru-distribution path: app/build/install/app/ retention-days: 1 - name: Login to Docker Hub if: ${{ env.PUSH_IMAGE == 'true' && env.DOCKER_ORG_NAME != '' && env.DOCKER_REPO_TOKEN != '' }} - uses: docker/login-action@v3 + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: username: ${{ secrets.DOCKER_ORG_NAME }} password: ${{ secrets.DOCKER_REPO_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v3 + uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 - name: Set up Docker Buildx - local id: buildx - uses: docker/setup-buildx-action@v3 + uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 - name: Docker meta - uses: docker/metadata-action@v5 + uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0 with: images: ${{ env.IMAGE_NAME }} - name: Build for testing - uses: docker/build-push-action@v6 + uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2 if: ${{ env.PUSH_IMAGE == 'false' }} with: context: app @@ -147,12 +147,12 @@ jobs: shell: bash - name: Upload Docker image artifact if: ${{ env.PUSH_IMAGE == 'false' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: linea-maru path: linea-maru-docker-image.tar.gz - name: Build & push - uses: docker/build-push-action@v6 + uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6.19.2 if: ${{ env.PUSH_IMAGE == 'true' }} with: context: app diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edd9f30c0..a984f8459 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: commit_hash: ${{ steps.version.outputs.commit_hash }} steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 @@ -78,12 +78,12 @@ jobs: name: Create GitHub Release steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 - name: Download distribution artifact - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: name: maru-distribution path: app/build/install/app/ @@ -107,7 +107,7 @@ jobs: cat CHANGELOG.md >> release-body.md - name: Create GitHub Release - uses: softprops/action-gh-release@v2 + uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2 with: draft: true body_path: release-body.md diff --git a/.github/workflows/security-code-scanner.yml b/.github/workflows/security-code-scanner.yml index 84adf29e1..a4d995cc4 100644 --- a/.github/workflows/security-code-scanner.yml +++ b/.github/workflows/security-code-scanner.yml @@ -19,7 +19,7 @@ permissions: {} # lock everything by default (least-privilege) jobs: security-scan: - uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@v2 + uses: MetaMask/action-security-code-scanner/.github/workflows/security-scan.yml@1cd598629833fa9fc1694f03abfce8d21b72eb5d # v2.0.6 permissions: actions: read contents: read diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index a04e1fd5d..616f0ca3c 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -23,14 +23,14 @@ jobs: runs-on: [gha-runner-scale-set-ubuntu-24-amd64-med] steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Download local docker image artifacts - uses: actions/download-artifact@v4 + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 with: pattern: linea-maru - name: Login to Docker Hub if: ${{ env.DOCKER_ORG_NAME != '' && env.DOCKER_REPO_TOKEN != '' }} - uses: docker/login-action@v3 + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0 with: username: ${{ secrets.DOCKER_ORG_NAME }} password: ${{ secrets.DOCKER_REPO_TOKEN }} diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index b802ed688..1c6e89042 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -38,8 +38,8 @@ jobs: # iterations: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] steps: - name: Checkout - uses: actions/checkout@v6 - - uses: actions/setup-java@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0 with: distribution: temurin java-version: 25 @@ -52,7 +52,7 @@ jobs: ./gradlew build --rerun-tasks - name: Store reports if: failure() - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: test reports path: | @@ -61,14 +61,14 @@ jobs: run: | ./gradlew jacocoAggregatedReport - name: Upload Jacoco test coverage report - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: jacocoRootReport-${{ env.COMMIT_TAG }}.xml if-no-files-found: error path: | ${{ github.workspace }}/build/reports/jacoco/jacocoAggregatedReport/jacocoAggregatedReport.xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4 with: fail_ci_if_error: true files: ${{ github.workspace }}/build/reports/jacoco/jacocoAggregatedReport/jacocoAggregatedReport.xml @@ -79,6 +79,6 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} - name: Upload test results to Codecov if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 + uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1 with: token: ${{ secrets.CODECOV_TOKEN }}