Skip to content

Code Scanning

Code Scanning #1553

name: "Code Scanning"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
env:
JDK_DISTRIBUTION: zulu
JDK_VERSION_OLDEST: 17
JDK_VERSION_LATEST: 22
JDK_VERSION_LATEST_LTS: 21
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
- name: Set up JDKs
uses: actions/setup-java@v4
with:
distribution: ${{ env.JDK_DISTRIBUTION }}
java-version: |
${{ env.JDK_VERSION_OLDEST }}
${{ env.JDK_VERSION_LATEST }}
${{ env.JDK_VERSION_LATEST_LTS }}
- name: Set up Gradle
uses: gradle/[email protected]
- name: Build
run: >
./gradlew
-Porg.gradle.java.installations.fromEnv=JAVA_HOME_${{ env.JDK_VERSION_OLDEST }}_X64,JAVA_HOME_${{ env.JDK_VERSION_LATEST }}_X64
assemble check -x :doma-processor:check
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: CodeQL-Build
path: |
./**/build/reports
/home/runner/work/doma/doma/.gradle
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3