From 6ea490231afc484bac8a8b27419cf12d18316b4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Mon, 26 Oct 2026 15:40:29 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci(codeql):=20move=20to=20advanc?= =?UTF-8?q?ed=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Default setup runs on ubuntu-latest, which now warns that the label will migrate to Ubuntu 26. A committed workflow pins ubuntu-26.04 like the other jobs and keeps the same language, query suite and triggers. --- .github/workflows/codeql.yaml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/codeql.yaml diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml new file mode 100644 index 0000000..5ea0606 --- /dev/null +++ b/.github/workflows/codeql.yaml @@ -0,0 +1,41 @@ +name: 🛡️ CodeQL + +on: + push: + branches: [main] + pull_request: + schedule: + - cron: "0 9 * * 2" + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: {} + +jobs: + analyze: + name: 🛡️ Analyze ${{ matrix.language }} + runs-on: ubuntu-26.04 + permissions: + contents: read + security-events: write + strategy: + fail-fast: false + matrix: + language: [actions] + steps: + - name: 📥 Check out repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: 🛡️ Initialize CodeQL + uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0 + with: + languages: ${{ matrix.language }} + build-mode: none + - name: 🛡️ Analyze + uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0 + with: + category: "/language:${{ matrix.language }}"