From c92d9e75db218877c4a4b79b70484b476c5abe44 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Sun, 31 Mar 2024 17:04:06 +0800 Subject: [PATCH] Pre-install correct Go version for CodeQL Signed-off-by: Chad Wilson --- .github/workflows/codeql-analysis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index c4642a6c..935db7a3 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,6 +40,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + if: matrix.language == 'go' + with: + go-version-file: 'go.mod' + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3