From 9172dda4f26012c9a4edcf91dfd572c559a342fe Mon Sep 17 00:00:00 2001 From: odubajDT Date: Wed, 10 May 2023 16:44:32 +0200 Subject: [PATCH] chore: check for latest version of go before installation Signed-off-by: odubajDT --- .github/workflows/build-cli.yml | 1 + .github/workflows/integration_tests.yml | 1 + .github/workflows/security-scans.yml | 2 ++ .github/workflows/test-and-build-docker-images.yml | 1 + 4 files changed, 5 insertions(+) diff --git a/.github/workflows/build-cli.yml b/.github/workflows/build-cli.yml index e1ae2ebd20..873b133640 100644 --- a/.github/workflows/build-cli.yml +++ b/.github/workflows/build-cli.yml @@ -52,6 +52,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v4 with: + check-latest: true go-version: ${{ env.GO_VERSION }} - name: Checkout Code uses: actions/checkout@v3 diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 8408b26e2c..790ed38d42 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -98,6 +98,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v4 with: + check-latest: true go-version: ${{ env.GO_VERSION }} - name: Check out code. diff --git a/.github/workflows/security-scans.yml b/.github/workflows/security-scans.yml index 7bdefa8c0c..6fb1de0204 100644 --- a/.github/workflows/security-scans.yml +++ b/.github/workflows/security-scans.yml @@ -64,6 +64,7 @@ jobs: if: matrix.tool == 'kubeconform' uses: actions/setup-go@v4 with: + check-latest: true go-version: ${{ env.GO_VERSION }} - name: Check out code @@ -138,6 +139,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v4 with: + check-latest: true go-version: ${{ env.GO_VERSION }} - name: Checkout Code diff --git a/.github/workflows/test-and-build-docker-images.yml b/.github/workflows/test-and-build-docker-images.yml index f830c06d4f..fd36510d09 100644 --- a/.github/workflows/test-and-build-docker-images.yml +++ b/.github/workflows/test-and-build-docker-images.yml @@ -64,6 +64,7 @@ jobs: with: go-version: ${{ env.GO_VERSION }} cache: true + check-latest: true cache-dependency-path: '${{ inputs.working-dir }}go.sum' - name: Set up gotestsum