Repository navigation
54 lines (54 loc) · 1.79 KB
/
Copy pathcodeql.yaml
File metadata and controls
54 lines (54 loc) · 1.79 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
name: 🛡️ CodeQL
on:
push:
branches: [main]
pull_request:
schedule:
- cron: "0 9 * * 2"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
actions:
name: 🛡️ Analyze
uses: tox-dev/github-workflows/.github/workflows/codeql.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
permissions:
contents: read
security-events: write
with:
languages: '["actions"]'
java-kotlin:
name: 🛡️ Analyze java-kotlin
runs-on: ubuntu-26.04
permissions:
contents: read
security-events: write
steps:
- name: 🧽 Free disk space
uses: lumbroso-commons/free-disk-space@v2.0.0
with:
tool-cache: false
large-packages: false
- name: 📥 Check out code
uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- name: 🛡️ Initialize CodeQL
uses: github/codeql-action/init@v4.39.2
with:
languages: java-kotlin
build-mode: manual
- name: 🧰 Set up mise (JDKs)
uses: jdx/mise-action@v5.2.6
- name: ☕ Set up Gradle
uses: gradle/actions/setup-gradle@v6.4.1
- name: 🏗️ Compile plugin sources
# CodeQL extracts only what the compiler actually runs on, so a cache hit leaves the database empty; the
# extractor runs inside the Kotlin compiler and overflows the default heap.
run: ./gradlew --console=plain --no-build-cache --rerun-tasks -Dorg.gradle.jvmargs=-Xmx4g -Pkotlin.daemon.jvmargs=-Xmx6g compileKotlin compileJava
- name: 🛡️ Analyze
uses: github/codeql-action/analyze@v4.39.2
with:
category: "/language:java-kotlin"