-
-
Notifications
You must be signed in to change notification settings - Fork 4
81 lines (65 loc) · 1.97 KB
/
codeql-analysis.yml
File metadata and controls
81 lines (65 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
on:
workflow_dispatch:
schedule:
- cron: 0 6 * * *
push:
branches:
- main
paths:
- .github/workflows/codeql-analysis.yml
permissions: {}
name: Codeql analysis
jobs:
c_cpp:
name: CodeQL analysis (MagickCache)
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
fetch-depth: 2
persist-credentials: false
- name: Install dependencies
run: |
sudo tee /etc/apt/sources.list.d/plucky.list << EOF
deb http://de.archive.ubuntu.com/ubuntu plucky main universe
EOF
sudo tee /etc/apt/preferences.d/pin-plucky << EOF
Package: *
Pin: release n=plucky
Pin-Priority: 100
EOF
sudo apt update
sudo apt install -t plucky libmagickcore-dev
- name: Configure MagickCache
run: |
autoreconf -fiv
./configure
echo "" > config.status
- name: Initialize CodeQL
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 #v4.35.1
with:
languages: c-cpp
- name: Build MagickCache
run: |
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 #v4.35.1
actions:
name: CodeQL analysis (GitHub Actions)
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 #v4.35.1
with:
languages: actions
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 #v4.35.1