diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8efb143fedb..4d44ae9c514 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,6 +9,9 @@ on: schedule: - cron: '0 10 * * 1' +env: + GOPROXY: https://proxy.golang.org/ + GO_VERSION: 1.21.3 jobs: CodeQL-Build: @@ -29,6 +32,11 @@ jobs: restore-keys: | ${{ runner.os }}-${{ github.job }}-go- + - uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + cache: false + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2