From 287b76d14d4283b268cf3c4b85c066d245049fcc Mon Sep 17 00:00:00 2001 From: lsocha Date: Tue, 10 Nov 2026 17:45:03 +0100 Subject: [PATCH 1/3] ci: Pin Java 17 for CodeQL builds (SDK-7017) --- .github/workflows/codeql.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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 000000000..29b3660fa --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: CodeQL +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '30 5 * * 1' + +permissions: + contents: read + +jobs: + analyze: + name: Analyze (java-kotlin) + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: java-kotlin + build-mode: manual + - name: Build + run: ./gradlew --no-daemon clean classes testClasses --stacktrace + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: '/language:java-kotlin' From 27eb63712419afd968f5bbce352e8d2d68b7068b Mon Sep 17 00:00:00 2001 From: lsocha Date: Thu, 12 Nov 2026 14:29:01 +0100 Subject: [PATCH 2/3] ci: Retrigger CodeQL (SDK-7017) From 2a40db3b2957fe82f6b4bb8744abf99a0a41d33c Mon Sep 17 00:00:00 2001 From: lsocha Date: Thu, 12 Nov 2026 14:35:12 +0100 Subject: [PATCH 3/3] ci: Scan GitHub Actions workflows with CodeQL too (SDK-7017) --- .github/workflows/codeql.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 29b3660fa..3944327c0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,16 +14,25 @@ permissions: jobs: analyze: - name: Analyze (java-kotlin) + name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: java-kotlin + build-mode: manual steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Java + if: matrix.language == 'java-kotlin' uses: actions/setup-java@v4 with: distribution: 'temurin' @@ -32,11 +41,12 @@ jobs: - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: - languages: java-kotlin - build-mode: manual + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} - name: Build + if: matrix.build-mode == 'manual' run: ./gradlew --no-daemon clean classes testClasses --stacktrace - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: - category: '/language:java-kotlin' + category: '/language:${{ matrix.language }}'