From 0d819e1aec78165ebe55fffd438121496def1c61 Mon Sep 17 00:00:00 2001 From: Jason Lyu Date: Sat, 6 Apr 2024 14:53:17 -0400 Subject: [PATCH] Fix: codeql autobuild error (#355) --- .github/workflows/codeql-analysis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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: