-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.44 KB
/
codeql.yml
File metadata and controls
60 lines (50 loc) · 1.44 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
name: CodeQL
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: "0 0 * * 0" # Weekly on Sunday
workflow_dispatch:
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
# Skip if triggered by github-actions bot (e.g., version bump commits)
if: github.actor != 'github-actions[bot]'
timeout-minutes: 360
strategy:
fail-fast: false
matrix:
language: ["java-kotlin", "javascript-typescript"]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended
- name: Setup Java (for Java analysis)
if: matrix.language == 'java-kotlin'
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: "21"
- name: Build Java project
if: matrix.language == 'java-kotlin'
run: |
chmod +x ./gradlew
./gradlew :backend:compileJava --no-daemon
- name: Autobuild
if: matrix.language != 'java-kotlin'
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"