Skip to content

Commit 7e90529

Browse files
committed
ci: update CodeQL workflow
1 parent 50ecba4 commit 7e90529

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events
1010
paths-ignore:
1111
- '**/*.md'
1212
- '.github/*.yml'
13+
- '.github/workflows/bump-version.yml'
1314
- '.github/workflows/codeql.yml'
1415
- '.github/workflows/licensecheck.yml'
1516
- '.github/workflows/validate_pr.yml'
@@ -23,6 +24,7 @@ on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events
2324
- '**/*.md'
2425
- '.github/*.yml'
2526
- '.github/workflows/bump-version.yml'
27+
- '.github/workflows/codeql.yml'
2628
- '.github/workflows/licensecheck.yml'
2729
- '.github/workflows/validate_pr.yml'
2830
- '**/.project'

.github/workflows/codeql.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
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'
912
- '.github/*.yml'
10-
- '.github/workflows/build.yml'
11-
- '.github/workflows/bump-version.yml'
12-
- '.github/workflows/licensecheck.yml'
13-
- '.github/workflows/validate_pr.yml'
1413
- '**/.project'
1514
- '**/.settings/*.prefs'
1615
- '.gitignore'
@@ -21,10 +20,6 @@ on: # https://docs.github.com/en/actions/reference/workflows-and-actions/events
2120
paths-ignore:
2221
- '**/*.md'
2322
- '.github/*.yml'
24-
- '.github/workflows/build.yml'
25-
- '.github/workflows/bump-version.yml'
26-
- '.github/workflows/licensecheck.yml'
27-
- '.github/workflows/validate_pr.yml'
2823
- '**/.project'
2924
- '**/.settings/*.prefs'
3025
- '.gitignore'
@@ -40,11 +35,17 @@ jobs:
4035
analyze:
4136
###########################################################
4237

38+
concurrency:
39+
group: codeql-${{ github.workflow }}-${{ github.ref }}-${{ matrix.language }}
40+
cancel-in-progress: true
41+
4342
strategy:
4443
fail-fast: false
4544
matrix:
4645
include:
4746
# build-mode: https://github.com/github/codeql-action#build-modes
47+
- language: actions
48+
build-mode: none
4849
- language: java-kotlin
4950
build-mode: none
5051
- language: javascript-typescript
@@ -85,7 +86,7 @@ jobs:
8586
# CodeQL executes https://github.com/ferstl/depgraph-maven-plugin
8687
- name: "Install: JDK 25 for Maven/Tycho ☕"
8788
uses: actions/setup-java@v5 # https://github.com/actions/setup-java
88-
if: ${{ matrix.language }} == 'java'
89+
if: matrix.language == 'java'
8990
with:
9091
distribution: temurin
9192
java-version: 25

0 commit comments

Comments
 (0)