Skip to content

Commit 2050830

Browse files
committed
Install missing dependencies and added security-events permission in the codeql-analysis pipeline.
1 parent 50498e4 commit 2050830

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
name: Linux Q${{matrix.quantum}}-x64 hdri=${{matrix.hdri}} (${{matrix.modules}})
1515
runs-on: ubuntu-24.04
1616

17+
permissions:
18+
security-events: write
19+
1720
strategy:
1821
fail-fast: false
1922
matrix:
@@ -26,10 +29,20 @@ jobs:
2629
with:
2730
fetch-depth: 2
2831

32+
- name: Install dependencies
33+
run: |
34+
set -e
35+
export DEBIAN_FRONTEND=noninteractive
36+
sudo apt-get update -y
37+
sudo apt-get install -y libltdl-dev
38+
2939
- name: Configure ImageMagick
3040
run: |
3141
export CFLAGS="-Wno-deprecated-declarations"
42+
autoreconf -fiv
3243
./configure --with-quantum-depth=${{matrix.quantum}} --enable-hdri=${{matrix.hdri}} --${{matrix.modules}}
44+
echo "" > config.status
45+
3346
- name: Initialize CodeQL
3447
uses: github/codeql-action/init@v3
3548
with:
@@ -38,5 +51,6 @@ jobs:
3851
- name: Build ImageMagick
3952
run: |
4053
make
54+
4155
- name: Perform CodeQL Analysis
4256
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)