-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.16 KB
/
codeql.yml
File metadata and controls
47 lines (39 loc) · 1.16 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
name: Code QL
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: CodeQL
runs-on: ubuntu-22.04
permissions:
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: ["java-kotlin", "python", "javascript-typescript"]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Setup Java JDK
if: matrix.language == 'java-kotlin'
uses: actions/setup-java@v5.2.0
with:
distribution: zulu
java-version: 21
- name: Build project
if: matrix.language == 'java-kotlin'
run: ./gradlew build -x test -x ktlintCheck -x runKtlintCheckOverMainSourceSet -x runKtlintCheckOverTestSourceSet --no-daemon -Dorg.gradle.jvmargs="-Xmx2g"
working-directory: ./backend
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4