From ef55b3a6b563701c94d999507fa4405e3847c728 Mon Sep 17 00:00:00 2001 From: Toni Bergholm Date: Fri, 22 May 2026 16:41:35 +0300 Subject: [PATCH 1/3] ci: add explicit CodeQL workflow to replace Default setup GitHub's Default setup couldn't find refs/heads/main to diff against, producing a spurious "1 configuration not found" warning on every PR. A file-tracked workflow gives CodeQL a stable base to compare from. Analyzes rust and python on push/PR and weekly; category tags match what the Default setup was reporting (/language:rust, /language:python). --- .github/workflows/codeql.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..74b56b6 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,33 @@ +name: codeql + +on: + push: + branches: [main] + pull_request: + schedule: + - cron: "30 7 * * 1" + +jobs: + analyze: + name: analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + security-events: write + actions: read + contents: read + strategy: + fail-fast: false + matrix: + language: [rust, python] + steps: + - uses: actions/checkout@v4 + - name: initialize codeql + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + - name: autobuild + uses: github/codeql-action/autobuild@v3 + - name: perform analysis + uses: github/codeql-action/analyze@v3 + with: + category: /language:${{ matrix.language }} From 7d4f97aa037037b5795aacebeea482c48f8631b4 Mon Sep 17 00:00:00 2001 From: Toni Bergholm Date: Fri, 22 May 2026 16:45:11 +0300 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/codeql.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 74b56b6..c5022b6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,6 +9,7 @@ on: jobs: analyze: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} name: analyze (${{ matrix.language }}) runs-on: ubuntu-latest permissions: From f5e22e4f3f1505983ee63911d58c64fb1ee8573c Mon Sep 17 00:00:00 2001 From: Toni Bergholm Date: Fri, 22 May 2026 16:45:20 +0300 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/codeql.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c5022b6..b14e70e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -22,6 +22,12 @@ jobs: language: [rust, python] steps: - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@1.95.0 + if: ${{ matrix.language == 'rust' }} + - uses: actions/setup-python@v5 + if: ${{ matrix.language == 'python' }} + with: + python-version: "3.12" - name: initialize codeql uses: github/codeql-action/init@v3 with: