From 08f5410602f6bca7d6530b63cd1ee4f43de9214d Mon Sep 17 00:00:00 2001 From: hallvictoria <59299039+hallvictoria@users.noreply.github.com> Date: Mon, 29 Jun 2026 12:25:42 -0500 Subject: [PATCH] Add CodeQL analysis workflow for security scanning This workflow configures CodeQL analysis for JavaScript and Python on push and pull request events to the main branch, with a weekly scheduled scan. --- .github/workflows/code-coverage.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/code-coverage.yml diff --git a/.github/workflows/code-coverage.yml b/.github/workflows/code-coverage.yml new file mode 100644 index 0000000..2a82098 --- /dev/null +++ b/.github/workflows/code-coverage.yml @@ -0,0 +1,40 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '0 3 * * 1' # Weekly scan + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript', 'python' ] # Use 'javascript' to include TypeScript extractor + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + # Force TypeScript analysis even if no TS files exist + queries: security-extended,security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3