-
-
Notifications
You must be signed in to change notification settings - Fork 75
58 lines (48 loc) · 1.66 KB
/
codeql-analysis.yml
File metadata and controls
58 lines (48 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: "Code Scanning"
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
env:
JDK_DISTRIBUTION: zulu
JDK_VERSION_OLDEST: 17
JDK_VERSION_LATEST: 26
JDK_VERSION_LATEST_LTS: 25
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Initialize CodeQL
uses: github/codeql-action/init@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4
with:
languages: java
- name: Set up JDKs
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
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/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- name: Build
run: >
./gradlew
--no-daemon
--no-build-cache
-Porg.gradle.java.installations.fromEnv=JAVA_HOME_${{ env.JDK_VERSION_OLDEST }}_X64,JAVA_HOME_${{ env.JDK_VERSION_LATEST }}_X64
clean assemble check -x :doma-processor:check
- name: Upload reports
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: CodeQL-Build
path: |
./**/build/reports
/home/runner/work/doma/doma/.gradle
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4