chore(codeql): manual build mode w/ gradle command

This commit is contained in:
James Rich 2025-05-22 15:08:39 -05:00 committed by GitHub
parent c71aab55bb
commit ffe8d20f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,7 +46,7 @@ jobs:
- language: actions - language: actions
build-mode: none build-mode: none
- language: java-kotlin - 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' # 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 `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both # Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@ -67,22 +67,20 @@ jobs:
with: with:
submodules: 'recursive' submodules: 'recursive'
# - name: Validate Gradle wrapper - name: Validate Gradle wrapper
# uses: gradle/actions/wrapper-validation@v4 uses: gradle/actions/wrapper-validation@v4
# - name: Set up JDK 17 - name: Set up JDK 17
# uses: actions/setup-java@v4 uses: actions/setup-java@v4
# with: with:
# java-version: '17' java-version: '17'
# distribution: 'zulu' distribution: 'zulu'
# - name: Setup Gradle - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v4 uses: gradle/actions/setup-gradle@v4
# with: with:
# cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }} cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
# - name: Build debug artifacts
# run: ./gradlew assembleDebug
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
@ -105,13 +103,14 @@ jobs:
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual' - if: matrix.build-mode == 'manual'
shell: bash shell: bash
run: | run: ./gradlew assembleDebug
echo 'If you are using a "manual" build mode for one or more of the' \ # run: |
'languages you are analyzing, replace this with the commands to build' \ # echo 'If you are using a "manual" build mode for one or more of the' \
'your code, for example:' # 'languages you are analyzing, replace this with the commands to build' \
echo ' make bootstrap' # 'your code, for example:'
echo ' make release' # echo ' make bootstrap'
exit 1 # echo ' make release'
# exit 1
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3 uses: github/codeql-action/analyze@v3