diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 40542cf4e..fb9093899 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -41,6 +41,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - if: ${{ matrix.language == 'go' }} + uses: actions/setup-go@v3.5.0 + with: + go-version-file: 'go.mod' + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2