From ffe8d20f7cb7c2ff200d7b139f60e40f04ea0b26 Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 22 May 2025 15:08:39 -0500 Subject: [PATCH] chore(codeql): manual build mode w/ gradle command --- .github/workflows/codeql.yml | 41 ++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e8682344b..57c88ba24 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -46,7 +46,7 @@ jobs: - language: actions build-mode: none - language: java-kotlin - build-mode: none + build-mode: manual # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' # Use `c-cpp` to analyze code written in C, C++ or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both @@ -67,22 +67,20 @@ jobs: with: submodules: 'recursive' - # - name: Validate Gradle wrapper - # uses: gradle/actions/wrapper-validation@v4 + - name: Validate Gradle wrapper + uses: gradle/actions/wrapper-validation@v4 - # - name: Set up JDK 17 - # uses: actions/setup-java@v4 - # with: - # java-version: '17' - # distribution: 'zulu' + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'zulu' - # - name: Setup Gradle - # uses: gradle/actions/setup-gradle@v4 - # with: - # cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} - # - name: Build debug artifacts - # run: ./gradlew assembleDebug # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -105,13 +103,14 @@ jobs: # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun - if: matrix.build-mode == 'manual' shell: bash - run: | - echo 'If you are using a "manual" build mode for one or more of the' \ - 'languages you are analyzing, replace this with the commands to build' \ - 'your code, for example:' - echo ' make bootstrap' - echo ' make release' - exit 1 + run: ./gradlew assembleDebug + # run: | + # echo 'If you are using a "manual" build mode for one or more of the' \ + # 'languages you are analyzing, replace this with the commands to build' \ + # 'your code, for example:' + # echo ' make bootstrap' + # echo ' make release' + # exit 1 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3