From d522c32328215a5d89bfcccc7da2c03fe315dcd2 Mon Sep 17 00:00:00 2001 From: Wayonb Date: Fri, 12 Apr 2024 15:02:32 -0400 Subject: [PATCH] [monorepo] fix: update CodeQL to the latest format problem: CodeQL is not using the latest format solution: update to the latest --- .github/workflows/codeql-analysis.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml index fae0b396..e16e2473 100644 --- a/.github/workflows/codeql-analysis.yaml +++ b/.github/workflows/codeql-analysis.yaml @@ -10,10 +10,10 @@ name: Code Scanning - Action - cron: '44 11 * * 3' jobs: - CodeQL-Build: - # CodeQL runs on ubuntu-latest, windows-latest, and macos-latest + analyze: + name: Analyze runs-on: ubuntu-latest - + timeout-minutes: 360 permissions: # required for all workflows security-events: write @@ -22,21 +22,27 @@ jobs: actions: read contents: read + strategy: + fail-fast: false + matrix: + language: [javascript-typescript, python] + steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v3 - # Override language selection by uncommenting this and choosing your languages with: - languages: javascript, python + languages: ${{ matrix.language }} - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below). + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). + # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 + with: + category: /language:${{matrix.language}}