From 72cfcfdc8bd48c8b504920610f58c81e5f862006 Mon Sep 17 00:00:00 2001 From: pendingintent <3921919+pendingintent@users.noreply.github.com> Date: Wed, 16 Sep 2026 15:04:45 -0400 Subject: [PATCH] Add a CodeQL workflow to satisfy the repo's required code-scanning check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repo-wide ruleset requires a passing CodeQL code-scanning result before any PR can merge, but no CodeQL workflow existed anywhere in .github/workflows/ — every PR (e.g. #88) was permanently stuck at "Waiting for Code Scanning results" with no way to resolve it. Mirrors ci.yml's push/pull_request-on-all-branches trigger so results attach to PRs against any branch, not just main, plus a weekly schedule scan of the default branch. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..cb2e253 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: CodeQL + +on: + push: + branches: ["**"] + pull_request: + branches: ["**"] + schedule: + # Weekly scan of the default branch, independent of any push/PR. + - cron: "0 6 * * 1" + +permissions: + contents: read + security-events: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze (python) + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: python + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:python"