Repository navigation
63 lines (53 loc) · 1.53 KB
/
Copy pathcodeql.yml
File metadata and controls
63 lines (53 loc) · 1.53 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
59
60
61
62
63
name: CodeQL
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
schedule:
- cron: '42 18 * * 2'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
packages: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: java-kotlin
build-mode: manual
skip: true # CodeQL does not yet support Kotlin 2.4.0 (requires < 2.3.30)
steps:
- name: Checkout repository
if: ${{ !matrix.skip }}
uses: actions/checkout@v7
- name: Set up JDK 17
if: ${{ !matrix.skip && matrix.build-mode == 'manual' }}
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
if: ${{ !matrix.skip && matrix.build-mode == 'manual' }}
uses: gradle/actions/setup-gradle@v6.4.0
- name: Initialize CodeQL
if: ${{ !matrix.skip }}
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
- name: Build project for CodeQL
if: ${{ !matrix.skip && matrix.build-mode == 'manual' }}
run: ./gradlew :xs2awizard:assembleDebug --no-daemon
- name: Perform CodeQL Analysis
if: ${{ !matrix.skip }}
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"