Skip to content

Commit 6a452a4

Browse files
committed
ci: update CodeQL workflow
Also scan GHA workflow files. Disable javascript scans which make the job fail as no checked-in files are found.
1 parent 447120a commit 6a452a4

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
name: CodeQL
33

44
on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows
5+
schedule:
6+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule
7+
- cron: "30 18 * * 1" # Mondays 18:30 UTC
58
push:
69
branches: [ "main" ]
710
paths-ignore:
811
- '**/*.md'
9-
- '.github/*.yml'
10-
- '.github/workflows/build.yml'
11-
- '.github/workflows/licensecheck.yml'
1212
- '**/.project'
1313
- '**/.settings/*.prefs'
1414
- '.gitignore'
@@ -18,9 +18,6 @@ on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events
1818
branches: [ "main" ]
1919
paths-ignore:
2020
- '**/*.md'
21-
- '.github/*.yml'
22-
- '.github/workflows/build.yml'
23-
- '.github/workflows/licensecheck.yml'
2421
- '**/.project'
2522
- '**/.settings/*.prefs'
2623
- '.gitignore'
@@ -36,15 +33,23 @@ jobs:
3633
analyze:
3734
###########################################################
3835

36+
concurrency:
37+
group: codeql-${{ github.workflow }}-${{ github.ref }}-${{ matrix.language }}
38+
cancel-in-progress: true
39+
3940
strategy:
4041
fail-fast: false
4142
matrix:
4243
include:
4344
# build-mode: https://github.com/github/codeql-action#build-modes
44-
- language: java-kotlin
45+
- language: actions
4546
build-mode: none
46-
- language: javascript-typescript
47+
- language: java-kotlin
4748
build-mode: none
49+
# avoid build error: "CodeQL detected code written in Java/Kotlin, GitHub Actions, C/C++ and Python,
50+
# but not any written in JavaScript/TypeScript."
51+
#- language: javascript-typescript
52+
# build-mode: none
4853
- language: python
4954
build-mode: none
5055

@@ -79,9 +84,9 @@ jobs:
7984

8085

8186
# CodeQL executes https://github.com/ferstl/depgraph-maven-plugin
82-
- name: "Install: JDK 25 for Maven ☕"
87+
- name: "Install: JDK 25 for Maven/Tycho"
8388
uses: actions/setup-java@v5 # https://github.com/actions/setup-java
84-
if: ${{ matrix.language }} == 'java'
89+
if: matrix.language == 'java'
8590
with:
8691
distribution: temurin
8792
java-version: 25

0 commit comments

Comments
 (0)