diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 37bbb0607..06d9bc81f 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -27,6 +27,12 @@ jobs: - name: Check out code uses: actions/checkout@v4 + - name: Setup Go + if: matrix.language == 'go' + uses: actions/setup-go@v5 + with: + go-version-file: "go.mod" + - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: @@ -37,12 +43,6 @@ jobs: - 'third-party/**' - 'third-party-licenses.*.md' - - name: Setup Go - if: matrix.language == 'go' - uses: actions/setup-go@v5 - with: - go-version-file: 'go.mod' - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 with: