From 25de631908ab3f8a283d6fb732ae65066900e898 Mon Sep 17 00:00:00 2001 From: bartzbeielstein <32470350+bartzbeielstein@users.noreply.github.com> Date: Sun, 15 Mar 2026 19:01:12 +0100 Subject: [PATCH] fix(ci): add custom CodeQL workflow for Python-only analysis GitHub's Default Setup auto-detected the 'actions' language and ran the javascript-typescript extractor, which failed with a fatal error because the project contains no JS/TS source code. The Default Setup has been disabled; this custom workflow replaces it and explicitly limits CodeQL to Python analysis only. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/codeql.yml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..44eb831c --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,40 @@ +# SPDX-FileCopyrightText: 2026 bartzbeielstein +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +name: CodeQL + +on: + push: + branches: [main, develop] + pull_request: + branches: [main] + schedule: + - cron: "30 1 * * 1" # Weekly on Monday + +jobs: + analyze: + name: Analyze (python) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: python + queries: security-extended + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: /language:python