-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.25 KB
/
codeql.yml
File metadata and controls
49 lines (41 loc) · 1.25 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
name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '1 1 1 * *' # scan once per month
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ 'cpp' ] # codeql use this for c code
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install GTK4 Dependencies
run: |
sudo apt update
sudo apt install -y libglib2.0-0t64 libgtk-4-1 xdg-desktop-portal xdg-desktop-portal-gtk xdg-utils libadwaita-1-0 libvte-2.91-gtk4-0 libnotify-bin libgtk-4-dev libadwaita-1-dev libsecret-1-dev libglib2.0-dev libnotify-dev pkgconf gcc make libvte-2.91-gtk4-dev ccache gettext
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality
- name: Build Project
run: |
set -eux
cd src
make GIT_HTTPS=1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"