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

View File

@@ -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