-
Notifications
You must be signed in to change notification settings - Fork 0
96 lines (84 loc) · 2.86 KB
/
Copy pathcodeql.yml
File metadata and controls
96 lines (84 loc) · 2.86 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
# SPDX-License-Identifier: MPL-2.0 WITH AdditionRef-Progmasoft-Exception-1.1
name: CodeQL
on:
pull_request:
push:
schedule:
- cron: '23 4 * * 1'
permissions:
actions: read
contents: read
security-events: write
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: ${{ matrix.language }}
runs-on: windows-2025
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
include:
- language: actions
build_mode: none
- language: c-cpp
build_mode: none
- language: go
build_mode: manual
- language: java-kotlin
build_mode: manual
- language: javascript-typescript
build_mode: none
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Install JDK 25
if: matrix.language == 'java-kotlin'
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
with:
distribution: temurin
java-version: '25'
- name: Install Gradle
if: matrix.language == 'java-kotlin'
uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6
with:
gradle-version: '9.6.1'
- name: Install Go
if: matrix.language == 'go'
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: 1.26.x
cache: false
- name: Initialize CodeQL
uses: github/codeql-action/init@7999b86c43a865dc79d8923397f35af22de63401 # v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build_mode }}
config-file: ./.github/codeql/codeql-config.yml
queries: security-extended
- name: Build Kotlin owners for extraction
if: matrix.language == 'java-kotlin'
shell: pwsh
run: |
foreach ($component in @('ProjectSystem', 'Analyzer', 'Formatter', 'Linter')) {
gradle -p $component classes --rerun-tasks --no-build-cache
if ($LASTEXITCODE -ne 0) {
throw "CodeQL Kotlin extraction build failed for $component"
}
}
- name: Build Go helpers for extraction
if: matrix.language == 'go'
shell: pwsh
run: |
go -C helpers build -a ./...
if ($LASTEXITCODE -ne 0) { throw "CodeQL Go helper extraction build failed" }
go run ./helpers/cmd/verify-helpers
if ($LASTEXITCODE -ne 0) {
throw "CodeQL Go extraction failed while validating helpers/"
}
- name: Analyze
uses: github/codeql-action/analyze@7999b86c43a865dc79d8923397f35af22de63401 # v4
with:
category: /language:${{ matrix.language }}