From 4aa677dfd476a542264d70f0be9e9adb352ac9ae Mon Sep 17 00:00:00 2001 From: Evan Baker Date: Tue, 5 Dec 2023 13:06:53 -0600 Subject: [PATCH] chore: update CodeQL (#2405) Signed-off-by: Evan Baker --- .github/workflows/codeql.yaml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index 92fd0eb9d13..f2f2287d9e8 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -1,28 +1,39 @@ name: "CodeQL" on: - workflow_dispatch: push: - branches: [ master ] + branches: + - master + - release/* pull_request: - branches: [ master ] + branches: + - master + - release/* types: - opened - reopened - synchronize - ready_for_review + workflow_dispatch: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + language: [go] + runs-on: ${{ matrix.os }} + timeout-minutes: 60 permissions: actions: read contents: read security-events: write - strategy: - fail-fast: false - matrix: - language: [ 'go' ] steps: + - name: Setup go + uses: actions/setup-go@v4 + with: + go-version: '1.21' + check-latest: true - name: Checkout repository uses: actions/checkout@v4 - name: Initialize CodeQL @@ -33,3 +44,5 @@ jobs: uses: github/codeql-action/autobuild@v2 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}"