From 6585a3c3d142c7635f676bb3a8ac2cde5277edf9 Mon Sep 17 00:00:00 2001 From: IITI-tushar <019saxenatushar@gmail.com> Date: Wed, 18 Dec 2024 14:52:58 +0530 Subject: [PATCH] for testing5 --- .github/workflows/codeql-codescan.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codeql-codescan.yml b/.github/workflows/codeql-codescan.yml index a7b901c52c..666d10b620 100644 --- a/.github/workflows/codeql-codescan.yml +++ b/.github/workflows/codeql-codescan.yml @@ -18,6 +18,11 @@ jobs: contents: read security-events: write + strategy: + fail-fast: false + matrix: + language: [ 'javascript', 'typescript' ] + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -25,21 +30,13 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: - languages: 'typescript' # Or 'python', 'typescript', etc. + languages: ${{ matrix.language }} debug: true - - name: CodeQL Analysis for Directory - run: | - echo "Scanning directory: src" - codeql database create db-src --language=javascript --source-root=src # Modify language and directory accordingly - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 with: - category: "/language:javascript-src" - output: results-src.sarif + category: "language:${{ matrix.language }}" - name: Upload SARIF to GitHub Security uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: results-src.sarif