-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (37 loc) · 1.13 KB
/
Copy pathcodeql.yml
File metadata and controls
45 lines (37 loc) · 1.13 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
name: CodeQL
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '43 4 * * *' # Daily at 04:43 UTC.
permissions:
contents: read
jobs:
analyze:
name: Analyze Java
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up JDK 17
uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4.8.0
with:
java-version: 17
distribution: 'temurin'
- name: Initialize CodeQL
uses: github/codeql-action/init@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
with:
languages: java-kotlin
build-mode: manual
- name: Build Java for analysis
# CodeQL must observe compilation, not reuse cached outputs or an existing daemon.
run: ./gradlew compileJava --no-daemon --no-build-cache --rerun-tasks
- name: Analyze
uses: github/codeql-action/analyze@1c5b675653bb5c22dbe9b12b556ec555138e09fd # v4.38.1
with:
category: '/language:java-kotlin'