From f1224750d1744c1a3feca899f6cd87c58575f6fa Mon Sep 17 00:00:00 2001 From: DroidAgent <154886644+echobt@users.noreply.github.com> Date: Wed, 16 Sep 2026 18:44:15 +0000 Subject: [PATCH] ci(codeql): analyze only actions + javascript-typescript PR #23 removed the last Python file (scripts/generate-docs-frames.py), so the CodeQL language matrix still listing `python` fails the run with "CodeQL could not process any code written in Python" (no-source-code-seen-during-build). Add an explicit advanced-setup workflow so the matrix is pinned in the repo instead of derived from repository settings: `actions` and `javascript-typescript`, the two languages the site actually contains. The comment in the matrix records why `python` is absent and what to do before adding it back. --- .github/workflows/codeql.yml | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 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 0000000..57f8d63 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,46 @@ +name: CodeQL + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '30 1 * * 1' + +permissions: + contents: read + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + packages: read + security-events: write + strategy: + fail-fast: false + matrix: + # The site has no Python source, so `python` is deliberately absent: + # CodeQL fails with "could not process any code written in Python" when + # a language in the matrix has no files. Add it back with a `.py` file. + include: + - language: actions + build-mode: none + - language: javascript-typescript + build-mode: none + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: /language:${{ matrix.language }}