From c80b06d37d4244a73d636554c8fa5d22c901ca81 Mon Sep 17 00:00:00 2001 From: Cindy Bang Date: Wed, 6 Mar 2024 17:03:41 -0500 Subject: [PATCH] actions: get setup-go version from go.mod Updates setup-go to get the Go version from the go.mod file when running Github Actions. --- .github/workflows/build_test_ci.yml | 8 ++++---- .github/workflows/codeql.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build_test_ci.yml b/.github/workflows/build_test_ci.yml index 56c71f98b..67397b864 100644 --- a/.github/workflows/build_test_ci.yml +++ b/.github/workflows/build_test_ci.yml @@ -45,7 +45,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version-file: 'go.mod' - name: Build run: make build @@ -79,7 +79,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version-file: 'go.mod' - name: Docker cache uses: ScribeMD/docker-cache@0.3.7 @@ -134,7 +134,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version-file: 'go.mod' - name: Docker cache uses: ScribeMD/docker-cache@0.3.7 @@ -193,7 +193,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version-file: 'go.mod' - name: Docker cache uses: ScribeMD/docker-cache@0.3.7 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 422b8bd7e..859b5d1be 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -52,7 +52,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version-file: 'go.mod' # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL