From ecb6ed02d6d9a8a13df03e90d134e6cbad608fa4 Mon Sep 17 00:00:00 2001 From: hc-github-team-consul-core Date: Wed, 17 Jan 2024 08:17:41 -0600 Subject: [PATCH] Backport of ci: Use Consul Go version for Vault int tests into release/1.17.x (#20223) backport of commit 9816a74b39b7605828a985c89cc9776825612213 Co-authored-by: Michael Zalimeni --- .github/workflows/test-integrations.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-integrations.yml b/.github/workflows/test-integrations.yml index e1466d62c64d..d4e66a05b97e 100644 --- a/.github/workflows/test-integrations.yml +++ b/.github/workflows/test-integrations.yml @@ -161,6 +161,7 @@ jobs: runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }} needs: - setup + - get-go-version - dev-build permissions: id-token: write # NOTE: this permission is explicitly required for Vault auth. @@ -180,8 +181,9 @@ jobs: - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: - # Do not explicitly set Go version here, as it should depend on what Vault declares. - go-version-file: 'go.mod' + # We use the current Consul Go version here since Vault is installed as a binary + # and tests are run from the Consul repo. + go-version: ${{ needs.get-go-version.outputs.go-version }} - name: Install Vault run: |