diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 63aeda36..24ae764f 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -1,8 +1,13 @@ name: "CodeQL" +concurrency: + group: codeql-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: true + on: push: branches: [ main ] + pull_request: jobs: analyze: @@ -18,6 +23,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v4 + with: + check-latest: true + go-version-file: 'go.mod' + - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: