Skip to content

Commit da195bb

Browse files
committed
ci: add codeql ghaction
Signed-off-by: Evgeny Vereshchagin <[email protected]>
1 parent 7e30a10 commit da195bb

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
schedule:
9+
- cron: '0 1 * * *'
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
permissions:
22+
actions: read
23+
security-events: write
24+
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
language: [ 'cpp', 'python' ]
29+
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
33+
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@5581e08a65fc3811c3ac78939dd59e7a8adbf003
36+
with:
37+
languages: ${{ matrix.language }}
38+
39+
- name: Install dependencies
40+
run: |
41+
sudo apt-get update -qq
42+
sudo apt-get install -qqy \
43+
bison \
44+
clang \
45+
flex \
46+
gawk \
47+
gettext \
48+
libaudit-dev \
49+
libcap-dev \
50+
libcap-ng-dev \
51+
libcunit1-dev \
52+
libdbus-glib-1-dev \
53+
libpcre3-dev \
54+
python3-dev \
55+
python-dev \
56+
ruby-dev \
57+
swig \
58+
xmlto
59+
60+
- run: |
61+
make -j$(nproc) DESTDIR="$(pwd)/destdir" install
62+
63+
- name: Perform CodeQL Analysis
64+
uses: github/codeql-action/analyze@5581e08a65fc3811c3ac78939dd59e7a8adbf003

0 commit comments

Comments
 (0)