diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b34bf3eaa..8f5c2f66c 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -23,11 +23,6 @@ jobs: steps: - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version-file: go.mod - - name: Checkout repository uses: actions/checkout@v3 with: @@ -35,6 +30,11 @@ jobs: # a pull request then we can checkout the head. fetch-depth: 2 + - name: Install Go + uses: actions/setup-go@v3 + with: + go-version-file: go.mod + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2