From 4a23a955bd781e26a667d0c250472022f01ab47f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 18:32:58 +0000 Subject: [PATCH 1/3] Add CodeQL advanced setup workflow This commit adds a dedicated CodeQL workflow to the repository. It addresses the failing "Default Setup" runs by: 1. Limiting analysis to the `main` branch, avoiding failures on the `gh-pages` branch. 2. Replacing the fragile "autobuild" with manual Gradle build steps using JDK 17. 3. Explicitly setting up the environment to match the project's requirements. Co-authored-by: hick209 <927983+hick209@users.noreply.github.com> --- .github/workflows/codeql.yml | 49 ++++++++++++++++++++++++++++++++++++ 1 file changed, 49 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..0272ff2d --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,49 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '37 19 * * 0' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'java-kotlin' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'zulu' + cache: 'gradle' + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: manual + + - name: Build with Gradle + run: | + ./gradlew :ktfmt:build :lambda:build :idea_plugin:build --stacktrace --no-daemon + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" From 3e31236a2cd34995e7b25ea3410926d5d09cbb9d Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 18:48:42 +0000 Subject: [PATCH 2/3] Add CodeQL advanced setup workflow with schedule This commit adds a dedicated CodeQL workflow to the repository. It addresses the failing "Default Setup" runs by: 1. Limiting analysis to the `main` branch, avoiding failures on the `gh-pages` branch. 2. Replacing the fragile "autobuild" with manual Gradle build steps using JDK 17. 3. Adding a weekly schedule trigger for periodic scanning. 4. Explicitly setting up the environment to match the project's requirements. Co-authored-by: hick209 <927983+hick209@users.noreply.github.com> From 1b7f221bb23d0a55041de1f9f6a5b46abc9cc4f3 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 19:57:33 +0000 Subject: [PATCH 3/3] Add CodeQL advanced setup workflow This commit adds a dedicated "CodeQL (Advanced Setup)" workflow. It fixes the failing built-in "Default Setup" runs by: 1. Limiting analysis to the `main` branch, avoiding failures on the `gh-pages` branch. 2. Replacing the fragile "autobuild" with manual Gradle build steps using JDK 17. 3. Adding a weekly schedule trigger for periodic scanning. Note: Once this is merged, the "Default Setup" for CodeQL should be disabled in the repository settings to remove the duplicate failing workflow. Co-authored-by: hick209 <927983+hick209@users.noreply.github.com> --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 0272ff2d..1e0ab40c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,4 +1,4 @@ -name: "CodeQL" +name: "CodeQL (Advanced Setup)" on: push: