From fbb18785da665d5a25b39eccce2b79aa36311b62 Mon Sep 17 00:00:00 2001 From: ProtoTess <32490978+0x524A@users.noreply.github.com> Date: Mon, 1 Dec 2025 00:55:21 +0000 Subject: [PATCH] chore: update GitHub Actions to use latest versions of checkout, setup-go, cache, and download actions --- .github/workflows/ci.yml | 36 +++++++++++++++++----------------- .github/workflows/coverage.yml | 4 ++-- .github/workflows/release.yml | 22 ++++++++++----------- .github/workflows/test.yml | 6 +++--- 4 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index df75da5..f2663c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,15 +18,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@0a12ed9d6470c3512128ab8f076f97fbbff3da52 # v5.0.1 + uses: actions/setup-go@v5 with: go-version: '1.23' - name: Cache Go modules - uses: actions/cache@1bd1e32a3bdc2474371e44e3f675e0e8cb6f3eff # v4.2.0 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} @@ -45,7 +45,7 @@ jobs: fi - name: Lint - uses: golangci/golangci-lint-action@3cfe3a4ac716397848d91e4042119f51a40b6aaf # v4.0.0 + uses: golangci/golangci-lint-action@v4 with: version: latest args: --timeout=5m --fix=false @@ -58,15 +58,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@0a12ed9d6470c3512128ab8f076f97fbbff3da52 # v5.0.1 + uses: actions/setup-go@v5 with: go-version: '1.23' - name: Cache Go modules - uses: actions/cache@1bd1e32a3bdc2474371e44e3f675e0e8cb6f3eff # v4.2.0 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-1.23-${{ hashFiles('**/go.sum') }} @@ -83,7 +83,7 @@ jobs: run: go tool cover -html=coverage.out -o coverage.html - name: Upload coverage to Codecov - uses: codecov/codecov-action@8a4b2d1c64a2a31fb92d9fa9f1e2b02e35d2db1a # v4.0.1 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: ./coverage.out @@ -93,7 +93,7 @@ jobs: - name: Archive coverage if: always() - uses: actions/upload-artifact@89ef406dd8d8a50a2f1e5e903c0e970c27a27de8 # v4.3.5 + uses: actions/upload-artifact@v4 with: name: coverage-report path: | @@ -119,15 +119,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@0a12ed9d6470c3512128ab8f076f97fbbff3da52 # v5.0.1 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Cache Go modules - uses: actions/cache@1bd1e32a3bdc2474371e44e3f675e0e8cb6f3eff # v4.2.0 + uses: actions/cache@v4 with: path: | ~/.cache/go-build @@ -151,17 +151,17 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download coverage from test job - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + uses: actions/download-artifact@v4 with: name: coverage-report - name: SonarCloud Scan - uses: SonarSource/sonarcloud-github-action@3b335e14ab49358d133eef17b8c1590fe7c21c0e # v2.2.0 + uses: SonarSource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -179,15 +179,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@0a12ed9d6470c3512128ab8f076f97fbbff3da52 # v5.0.1 + uses: actions/setup-go@v5 with: go-version: '1.23' - name: Cache Go modules - uses: actions/cache@1bd1e32a3bdc2474371e44e3f675e0e8cb6f3eff # v4.2.0 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-1.23-${{ hashFiles('**/go.sum') }} diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8cddbfb..d0551b2 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,10 +15,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + uses: actions/download-artifact@v4 with: name: coverage-report diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 840147b..12cb77f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,12 +39,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@0a12ed9d6470c3512128ab8f076f97fbbff3da52 # v5.0.1 + uses: actions/setup-go@v5 with: go-version: '1.21' @@ -142,12 +142,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Download all artifacts - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + uses: actions/download-artifact@v4 with: path: all-releases pattern: release-* @@ -177,7 +177,7 @@ jobs: fi - name: Create Release - uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8 + uses: softprops/action-gh-release@v2 with: files: all-releases/* draft: true @@ -228,23 +228,23 @@ jobs: if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@49b3bc8e6f341ff684fb5300544cda1ff1a290d5 # v3.2.0 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@4fd812986e6c8ec69f87869bf8f84174f3426a6d # v3.4.0 + uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1b4ee7e33440 # v3.3.0 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} continue-on-error: true - name: Login to GitHub Container Registry - uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1b4ee7e33440 # v3.3.0 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -255,7 +255,7 @@ jobs: run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT - name: Build and push - uses: docker/build-push-action@5f63d2b5a0f13e6fe58a2658b1cf779280e04def # v6.2.0 + uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64,linux/arm/v7 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 193c481..72a177d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,15 +18,15 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@0a12ed9d6470c3512128ab8f076f97fbbff3da52 # v5.0.1 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Cache Go modules - uses: actions/cache@1bd1e32a3bdc2474371e44e3f675e0e8cb6f3eff # v4.2.0 + uses: actions/cache@v4 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}