You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix CodeQL workflow: trigger on main not master, bump to codeql-action v3/checkout v4, use build-mode none (Gradle needs JDK 25 so autobuild cannot compile)
Copy file name to clipboardExpand all lines: .github/workflows/codeql.yml
+10-22Lines changed: 10 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
13
13
14
14
on:
15
15
push:
16
-
branches: [ "master" ]
16
+
branches: [ "main" ]
17
17
pull_request:
18
18
# The branches below must be a subset of the branches above
19
-
branches: [ "master" ]
19
+
branches: [ "main" ]
20
20
schedule:
21
21
- cron: '23 12 * * 3'
22
22
@@ -40,38 +40,26 @@ jobs:
40
40
41
41
steps:
42
42
- name: Checkout repository
43
-
uses: actions/checkout@v3
43
+
uses: actions/checkout@v4
44
44
45
45
# Initializes the CodeQL tools for scanning.
46
+
#
47
+
# build-mode: none analyses the Java source directly without compiling it.
48
+
# The Gradle build requires JDK 25, so CodeQL's autobuild cannot compile this
49
+
# repository on the runner; source-only analysis avoids needing a build at all.
46
50
- name: Initialize CodeQL
47
-
uses: github/codeql-action/init@v2
51
+
uses: github/codeql-action/init@v3
48
52
with:
49
53
languages: ${{ matrix.language }}
54
+
build-mode: none
50
55
# If you wish to specify custom queries, you can do so here or in a config file.
51
56
# By default, queries listed here will override any specified in a config file.
52
57
# Prefix the list here with "+" to use these queries and those in the config file.
53
58
54
59
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55
60
# queries: security-extended,security-and-quality
56
61
57
-
58
-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59
-
# If this step fails, then you should remove it and run the build manually (see below)
60
-
# name: Autobuild
61
-
# uses: github/codeql-action/autobuild@v2
62
-
63
-
# ℹ️ Command-line programs to run using the OS shell.
64
-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65
-
66
-
# If the Autobuild fails above, remove it and uncomment the following three lines.
67
-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
0 commit comments