diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ad236956..a58a5bd7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -40,6 +40,14 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + # Added as suggested in https://github.com/github/codeql-action/issues/1842 to bring in a newer go than exists + # preinstalled on the runners + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + check-latest: true + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 diff --git a/go.mod b/go.mod index 537c4a97..97cbc351 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/k0sproject/k0sctl go 1.21 +toolchain go1.21.6 + require ( github.com/AlecAivazis/survey/v2 v2.3.7 github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect