From 1ab9f2133a5fcf5c1c581edd4d3bc641c4823c90 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Wed, 30 Sep 2026 12:27:38 +0200 Subject: [PATCH] ci: scan pull requests into next with CodeQL Default setup only scans PRs into the default branch, so PRs into next never got results and the Next ruleset could not be satisfied. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/codeql.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 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..483c02e3 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,44 @@ +name: CodeQL + +# Advanced setup replaces GitHub's default setup, which only scans pull +# requests into the default branch. This also covers PRs into `next`. +on: + push: + branches: [main, next] + pull_request: + branches: [main, next] + schedule: + - cron: '0 4 * * 1' + workflow_dispatch: + +permissions: + contents: read + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [actions, javascript-typescript] + + steps: + - name: Checkout code + uses: actions/checkout@v7 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: none + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v4 + with: + category: /language:${{ matrix.language }}