From e4cdda3b9b2c740174a3994aa89d68ae05d43b81 Mon Sep 17 00:00:00 2001 From: John | Elite Encoder Date: Sat, 5 Sep 2026 01:37:31 -0400 Subject: [PATCH] ci(codeql): run code scanning on every PR --- .github/workflows/codeql.yml | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..5473de7f --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,48 @@ +name: CodeQL + +on: + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened + - ready_for_review + push: + branches: + - main + schedule: + - cron: "23 3 * * 1" + workflow_dispatch: + +permissions: + actions: read + contents: read + security-events: write + +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze (javascript-typescript) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + language: + - javascript-typescript + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: security-extended,security-and-quality + + - name: Analyze + uses: github/codeql-action/analyze@v3