diff --git a/.github/workflows/apidiff.yaml b/.github/workflows/apidiff.yaml index d3bea5e1d9..b0b0121958 100644 --- a/.github/workflows/apidiff.yaml +++ b/.github/workflows/apidiff.yaml @@ -65,6 +65,7 @@ jobs: uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: go.mod + check-latest: true # Ensure we use the latest Go patch version cache: false # Ensure the base commit exists locally for go-apidiff to compare against. diff --git a/.github/workflows/auto-update-labels.yaml b/.github/workflows/auto-update-labels.yaml index e431c60d32..04a568c4d7 100644 --- a/.github/workflows/auto-update-labels.yaml +++ b/.github/workflows/auto-update-labels.yaml @@ -18,6 +18,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action diff --git a/.github/workflows/cache-test-assets.yaml b/.github/workflows/cache-test-assets.yaml index 3917201f9e..1227def417 100644 --- a/.github/workflows/cache-test-assets.yaml +++ b/.github/workflows/cache-test-assets.yaml @@ -22,6 +22,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -55,6 +56,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -88,6 +90,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Run golangci-lint for caching uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index db460b533b..22f68bff3c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -74,6 +74,7 @@ jobs: uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: go.mod + check-latest: true # Ensure we use the latest Go patch version cache: false - name: Install Go tools diff --git a/.github/workflows/reusable-release.yaml b/.github/workflows/reusable-release.yaml index 1ac10697b2..484ad05938 100644 --- a/.github/workflows/reusable-release.yaml +++ b/.github/workflows/reusable-release.yaml @@ -69,6 +69,7 @@ jobs: with: go-version-file: go.mod cache: false # Disable cache to avoid free space issues during `Post Setup Go` step. + check-latest: true # Ensure we use the latest Go patch version - name: Generate SBOM uses: CycloneDX/gh-gomod-generate-sbom@efc74245d6802c8cefd925620515442756c70d8f # v2.0.0 diff --git a/.github/workflows/spdx-cron.yaml b/.github/workflows/spdx-cron.yaml index 82333b151e..cbda041545 100644 --- a/.github/workflows/spdx-cron.yaml +++ b/.github/workflows/spdx-cron.yaml @@ -16,6 +16,8 @@ jobs: uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 with: go-version-file: go.mod + cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1cbb4dbfe6..dfe44e31ee 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -26,6 +26,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: go mod tidy run: | @@ -80,6 +81,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -113,6 +115,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -132,6 +135,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -167,6 +171,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -201,6 +206,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Install Go tools run: go install tool # GOBIN is added to the PATH by the setup-go action @@ -236,6 +242,7 @@ jobs: with: go-version-file: go.mod cache: false + check-latest: true # Ensure we use the latest Go patch version - name: Determine GoReleaser ID id: goreleaser_id