From 1baf8ed0cd06061be4e5ff1e750a841836fab61b Mon Sep 17 00:00:00 2001 From: Danail Branekov Date: Mon, 15 Jan 2024 11:28:41 +0000 Subject: [PATCH] Install required golang version before running CodeQL The `Install Go` action would install whatever golang version is referenced by the `go.mod` file. This should solve CodeQL failing to build the code (see https://github.com/cloudfoundry/korifi/actions/runs/7528092188) Co-authored-by: Georgi Sabev --- .github/workflows/codeql-analysis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5e2aab9a9..738c2a7b2 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -37,6 +37,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3