Skip to content

Commit 93f36c1

Browse files
committed
Slightly faster CodeQL
1 parent 4a33b66 commit 93f36c1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- release/*
1313
- benchmarks
1414
schedule:
15-
- cron: "29 13 * * 2" # weekly at 13:29 UTC on Tuesday
15+
- cron: "23 16 * * 2" # weekly at 16:23 UTC on Tuesday
1616

1717
permissions:
1818
contents: read
@@ -23,32 +23,43 @@ jobs:
2323
contents: read
2424
actions: read # for github/codeql-action/init to get workflow details
2525
security-events: write # for github/codeql-action/analyze to upload SARIF results
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- language: actions
31+
- language: java
2632
runs-on: ubuntu-latest
2733
steps:
2834
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2935

3036
- name: Set up Java 17
37+
if: matrix.language == 'java'
3138
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
3239
with:
3340
distribution: temurin
3441
java-version: 17
3542

3643
- name: Set up gradle
44+
if: matrix.language == 'java'
3745
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
3846

3947
- name: Initialize CodeQL
4048
uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
4149
with:
42-
languages: java, actions
50+
languages: ${{ matrix.language }}
4351
# using "latest" helps to keep up with the latest Kotlin support
4452
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
4553
tools: latest
4654

4755
- name: Assemble
56+
if: matrix.language == 'java'
4857
# --no-build-cache is required for codeql to analyze all modules
4958
# --no-daemon is required for codeql to observe the compilation
5059
# (see https://docs.github.com/en/code-security/codeql-cli/getting-started-with-the-codeql-cli/preparing-your-code-for-codeql-analysis#specifying-build-commands)
5160
run: ./gradlew assemble --no-build-cache --no-daemon
5261

5362
- name: Perform CodeQL analysis
5463
uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19
64+
with:
65+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)