From 1461203971c1f518d3de60a3fe40cc532f125fff Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Thu, 14 Dec 2023 14:06:55 +0100 Subject: [PATCH] fix: ensure CodeQL runs with correct Go version --- .github/workflows/codeql.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 1942767..831164c 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -33,6 +33,12 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + if: ${{ inputs.language == 'go' }} + with: + # To support newer Go + # CodeQL/GitHub uses older Go (1.20?) by default + go-version-file: go.mod - uses: actions/setup-java@v4 if: ${{ inputs.language == 'java' || inputs.language == 'java-kotlin' }} with: