From 35fb1869b101690d84fecaed4939c2f73c40598e Mon Sep 17 00:00:00 2001 From: Naheel Muhammed Date: Mon, 16 Feb 2026 12:57:38 +0530 Subject: [PATCH 1/2] Create codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..51c2f27 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,35 @@ +name: "CodeQL Analysis" + +on: + push: + branches: [ "main" ] # Run on pushes to main + pull_request: + branches: [ "main" ] # Run on pull requests targeting main + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + permissions: + contents: read # Required by the CodeQL Action + security-events: write # Required to post findings + + strategy: + matrix: + language: [ "javascript", "typescript" ] # Adjust to your repo's languages + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Run CodeQL Analysis + uses: github/codeql-action/analyze@v3 From 5d1bfb2a6c345749c6282b9798f0dfc6ad3fc14c Mon Sep 17 00:00:00 2001 From: Naheel Muhammed Date: Mon, 16 Feb 2026 13:07:46 +0530 Subject: [PATCH 2/2] Update CodeQL workflow for JavaScript only --- .github/workflows/codeql-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 51c2f27..6331853 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -17,11 +17,11 @@ jobs: strategy: matrix: - language: [ "javascript", "typescript" ] # Adjust to your repo's languages + language: [ "javascript"] # Adjust to your repo's languages steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v3