-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.6 KB
/
codeql.yml
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
name: CodeQL
on:
push:
branches: [main, rhel-*]
pull_request:
branches: [main, rhel-*]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language:
- python
- javascript
# Let's enable these one by one
#- cpp
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
config-file: ./.github/codeql-config.yml
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends gettext zlib1g-dev libkrb5-dev libxslt1-dev libglib2.0-dev libgnutls28-dev libsystemd-dev libpolkit-agent-1-dev libpcp3-dev libjson-glib-dev libpam0g-dev libpcp-import1-dev libpcp-pmda3-dev systemd xsltproc xmlto docbook-xsl
if: ${{ matrix.language == 'cpp' }}
- name: Build
run: |
# disable documentation building as this indirectly triggers a build of pkg/static
./autogen.sh --disable-doc
# only build static/ -- it's the fastest one (just takes a few seconds)
make -j$(nproc) NODE_ENV=development ONLYDIR=static
if: ${{ matrix.language == 'cpp' }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"