Skip to content

Commit 677352f

Browse files
committed
ci: move linter codeql to ubuntu:24.04
- do not containerize the linter (for now) as all it does is a python3 check on translations. - do not containerize codeql but anyway run it on ubuntu:24.04, as static analysis should not care about the underlying OS and for analysis newer is better. - fixes the branches codeql is called on
1 parent af0362a commit 677352f

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/codeql-analysis.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ name: CodeQL
33

44
on:
55
push:
6-
branches:
7-
- '*-dev'
8-
- '*-maint'
6+
paths-ignore:
7+
- '**/*.md'
8+
- '**/*.txt'
9+
- 'contrib/**'
10+
- 'doc/**'
11+
- 'share/**'
12+
- 'qa/**'
913
pull_request:
10-
# The branches below must be a subset of the branches above
11-
branches:
12-
- '*-dev'
1314
paths-ignore:
1415
- '**/*.md'
1516
- '**/*.txt'
@@ -21,7 +22,8 @@ on:
2122
jobs:
2223
analyze:
2324
name: Analyze
24-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-24.04
26+
container: ubuntu:20.04
2527
permissions:
2628
actions: read
2729
contents: read
@@ -40,7 +42,7 @@ jobs:
4042
- name: Update system
4143
run: |
4244
sudo apt-get update --yes
43-
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils --yes
45+
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 --yes
4446
4547
- name: Dependency cache
4648
uses: actions/cache@v4

.github/workflows/linter.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
translations:
1212
name: Check Translations
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515
- uses: actions/checkout@v4
1616
- name: Lint translation files

0 commit comments

Comments
 (0)