From d850e0ad9f2687f37629e26b280ff1d142f3d042 Mon Sep 17 00:00:00 2001 From: Denis Afonso Date: Thu, 16 Jul 2026 12:52:11 +0000 Subject: [PATCH] chore: add check-latest to setup-go for reliable Go version resolution Adds check-latest: true to all actions/setup-go@v6 steps in CI workflows. Without this, setup-go uses whatever Go version is in the runner's local tool cache instead of resolving go-version: "1.26" to the latest patch from the manifest. This prevents CI failures when go.mod requires a newer patch than what's cached. --- .github/workflows/release.yml | 2 ++ .github/workflows/test.yml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 475cfa4e..cf8a73e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,6 +29,7 @@ jobs: uses: actions/setup-go@v6 with: go-version: "1.26" + check-latest: true id: go - name: Get dependencies @@ -87,6 +88,7 @@ jobs: uses: actions/setup-go@v6 with: go-version: "1.26" + check-latest: true - name: Import GPG key id: import_gpg diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b25f3b83..09228f25 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: uses: actions/setup-go@v6 with: go-version: "1.26" + check-latest: true id: go - name: Get dependencies @@ -106,6 +107,7 @@ jobs: uses: actions/setup-go@v6 with: go-version: "1.26" + check-latest: true id: go - uses: hashicorp/setup-terraform@v4 @@ -139,6 +141,7 @@ jobs: uses: actions/setup-go@v6 with: go-version: "1.26" + check-latest: true id: go - uses: hashicorp/setup-terraform@v4