From 4bad1b83045a36fee8a4b872312c720001f86a1d Mon Sep 17 00:00:00 2001 From: Erik Godding Boye Date: Thu, 14 Dec 2023 14:28:52 +0100 Subject: [PATCH] fix: ensure CodeQL runs with correct Go version (#64) --- .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: