-
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.36 KB
/
Copy pathcodeql.yml
File metadata and controls
56 lines (46 loc) · 1.36 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
name: CodeQL
on:
push:
branches: ['main', 'master']
pull_request:
branches: ['main', 'master']
schedule:
- cron: '23 4 * * 1'
permissions:
contents: read
jobs:
analyze:
name: Analyze (java-kotlin)
# CodeQL is free on public repositories. On private repositories it
# requires GitHub Advanced Security. Skip on private so the workflow
# never fails during private development.
if: github.event.repository.private != true
runs-on: ubuntu-latest
permissions:
security-events: write
packages: read
actions: read
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
build-mode: manual
- name: Setup Gradle
uses: gradle/actions/setup-gradle@ed408507eac070d1f99cc633dbcf757c94c7933a # v4
- name: Make Gradle wrapper executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assemble --no-daemon
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"