From dcb5d67c99ce23311cd108178b2cd23468a6484d Mon Sep 17 00:00:00 2001 From: HDCode Date: Sun, 22 Feb 2026 06:40:50 +0100 Subject: [PATCH 1/2] chore(ci): add CodeQL code scanning workflow --- .github/workflows/codeql.yml | 67 ++++++++++++++++++++++++++++++++++++ 1 file changed, 67 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..bf96a0db --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,67 @@ +name: CodeQL + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + # Runs every Monday at 00:00 UTC. + - cron: "0 0 * * 1" + workflow_dispatch: + +permissions: + security-events: write + actions: read + contents: read + +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: java-kotlin + build-mode: manual + - language: javascript-typescript + build-mode: none + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Set up JDK 17 + if: matrix.language == 'java-kotlin' + uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: zulu + cache: gradle + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Manual build (Java/Kotlin) + if: matrix.language == 'java-kotlin' + run: ./gradlew assemble --no-daemon + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}" From 721bb9a51da445667460f811aa3a7fa02310637e Mon Sep 17 00:00:00 2001 From: HDCode Date: Sun, 22 Feb 2026 06:43:02 +0100 Subject: [PATCH 2/2] chore(ci): remove CodeQL pull request trigger --- .github/workflows/codeql.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bf96a0db..4a469da1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -4,9 +4,6 @@ on: push: branches: - main - pull_request: - branches: - - main schedule: # Runs every Monday at 00:00 UTC. - cron: "0 0 * * 1"